From 5c606204d7b8aa59b9781286fd2aa21004703e50 Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Tue, 30 Jan 2024 18:41:28 +0100 Subject: [PATCH] fixup Signed-off-by: Matteo Collina --- lib/reporters.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/reporters.js b/lib/reporters.js index a34cb7b..b940ef1 100644 --- a/lib/reporters.js +++ b/lib/reporters.js @@ -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