We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46a88f1 commit ec02fe8Copy full SHA for ec02fe8
apps/oxlint/test/utils.ts
@@ -92,10 +92,12 @@ function normalizeStdout(stdout: string): string {
92
match = line.match(/^(\s*\|\s+File path: )(.+)$/);
93
if (match) {
94
const [, preamble, path] = match;
95
- if (path.startsWith(REPO_ROOT_PATH)) return [`${preamble}<root>/${path.slice(REPO_ROOT_PATH.length)}`];
+ if (path.startsWith(REPO_ROOT_PATH)) {
96
+ return [`${preamble}<root>/${path.slice(REPO_ROOT_PATH.length).replace(/\\/g, '/')}`];
97
+ }
98
}
99
- if (line.startsWith(REPO_ROOT_PATH)) line = `<root>/${line.slice(REPO_ROOT_PATH.length)}`;
100
+ if (line.startsWith(REPO_ROOT_PATH)) line = `<root>/${line.slice(REPO_ROOT_PATH.length).replace(/\\/g, '/')}`;
101
return [line];
102
});
103
0 commit comments