Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Collina <hello@matteocollina.com>
  • Loading branch information
mcollina committed Jan 30, 2024
1 parent 9eb610d commit 5c60620
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reporters.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function normalizeFile (file, cwd) {
res = fileURLToPath(new URL(file))
}
res = res.replace(cwd, '')
if (res.startsWith('/')) {
if (res.startsWith('/') || res.startsWith('\\')) {
res = res.slice(1)
}
return res
Expand Down

0 comments on commit 5c60620

Please sign in to comment.