Skip to content

Commit 479fca8

Browse files
EdgarTwiggEdgarTwigg
authored andcommitted
More windows-specific path sanitization.
1 parent da53172 commit 479fca8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugin-maven/src/test/java/com/diffplug/spotless/maven/MavenIntegrationHarness.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@ protected StringSelfie expectSelfieErrorMsg(ProcessRunner.Result result) {
370370
String sanitizeBiomeNative = trimTrailingString.replaceAll("[/|\\\\].m2(.*)[/|\\\\]biome\\-(.+),", "biome-exe");
371371
String sanitizeFilePath = sanitizeBiomeNative.replace(rootFolder().getAbsolutePath(), "${PROJECT_DIR}");
372372
String sanitizeUserHome = sanitizeFilePath.replace(System.getProperty("user.home"), "${user.home}");
373-
return Selfie.expectSelfie(sanitizeUserHome);
373+
String sanitizeWindowsPathSep = sanitizeUserHome.replace('\\', '/');
374+
return Selfie.expectSelfie(sanitizeWindowsPathSep);
374375
}
375376
}

0 commit comments

Comments
 (0)