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 4e18de1 commit 165e97eCopy full SHA for 165e97e
apps/oxlint/test/utils.ts
@@ -92,10 +92,10 @@ 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)) return [`${preamble}<root>/${path.slice(REPO_ROOT_PATH.length).replace(/\\/g, '/')}`];
96
}
97
98
- if (line.startsWith(REPO_ROOT_PATH)) line = `<root>/${line.slice(REPO_ROOT_PATH.length)}`;
+ if (line.startsWith(REPO_ROOT_PATH)) line = `<root>/${line.slice(REPO_ROOT_PATH.length).replace(/\\/g, '/')}`;
99
return [line];
100
});
101
0 commit comments