Test infra: fix regexes relying on \n line endings
This commit is contained in:
committed by
Space Team
parent
b2b2914da1
commit
fea344faa4
+1
-1
@@ -14,6 +14,6 @@ class JspecifyMarksCleanupPreprocessor(testServices: TestServices) : SourceFileP
|
||||
|
||||
companion object {
|
||||
private val jspecifyMarks = diagnosticsToJspecifyMarks.values.map { it.values }.flatten().joinToString("|")
|
||||
private val regexToCleanup = Regex("""[ ]*// ($jspecifyMarks)(, ($jspecifyMarks))*\n""")
|
||||
private val regexToCleanup = Regex("""[ ]*// ($jspecifyMarks)(, ($jspecifyMarks))*(?:\r\n|\n)""")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user