This repository was archived by the owner on Sep 8, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/main/scala/scala/tools/partest/nest Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -311,6 +311,8 @@ class Runner(val testFile: File, val suiteRunner: SuiteRunner) {
311
311
* any Windows backslashes with the one true file separator char.
312
312
*/
313
313
def normalizeLog () {
314
+ import scala .util .matching .Regex
315
+
314
316
// Apply judiciously; there are line comments in the "stub implementations" error output.
315
317
val slashes = """ [/\\ ]+""" .r
316
318
def squashSlashes (s : String ) = slashes replaceAllIn (s, " /" )
@@ -324,7 +326,8 @@ class Runner(val testFile: File, val suiteRunner: SuiteRunner) {
324
326
// no spaces in test file paths below root, because otherwise how to detect end of path string?
325
327
val pathFinder = raw """ (?i)\Q ${elided}${File .separator}\E([\ ${File .separator}\S]*) """ .r
326
328
def canonicalize (s : String ): String = (
327
- pathFinder replaceAllIn (s, m => ellipsis + squashSlashes(m group 1 ))
329
+ pathFinder replaceAllIn (s, m =>
330
+ Regex .quoteReplacement(ellipsis + squashSlashes(m group 1 )))
328
331
)
329
332
330
333
def masters = {
You can’t perform that action at this time.
0 commit comments