File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
tests/build_tests/suggested_actions Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,10 @@ const updateTests = process.argv[2] === "update";
2525function postProcessStdout ( output ) {
2626 let result = output ;
2727 result = result . trimEnd ( ) ;
28- // Normalize absolute paths in suggested_actions to stable project-relative ones
28+ // Normalize absolute suggested_actions paths to project-relative, POSIX-style paths
2929 result = result . replace (
30- / (?: [ A - Z ] : ) ? [ \\ / ] [ ^ \n ] * ?t e s t s [ \\ / ] b u i l d _ t e s t s [ \\ / ] s u g g e s t e d _ a c t i o n s [ \\ / ] / g,
31- "tests/build_tests/suggested_actions/" ,
30+ / (?: [ A - Z ] : ) ? [ \\ / ] [ ^ \n ] * ?( t e s t s [ \\ / ] b u i l d _ t e s t s [ \\ / ] s u g g e s t e d _ a c t i o n s [ \\ / ] [ ^ \s " ] + ) / g,
31+ ( _match , relPath ) => relPath . split ( / [ \\ / ] + / ) . join ( "/" ) ,
3232 ) ;
3333 return normalizeNewlines ( result ) ;
3434}
You can’t perform that action at this time.
0 commit comments