From f5577cc7df02e17d6e1cf0b757c69fea65da1947 Mon Sep 17 00:00:00 2001 From: David Goss Date: Sat, 30 Sep 2023 09:53:43 +0100 Subject: [PATCH] fix: try compatibility option --- src/api/paths.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/api/paths.ts b/src/api/paths.ts index afeb25603..f08892969 100644 --- a/src/api/paths.ts +++ b/src/api/paths.ts @@ -59,12 +59,15 @@ async function expandPaths( unexpandedPaths.map(async (unexpandedPath) => { const matches = await glob(unexpandedPath, { absolute: true, + windowsPathsNoEscape: true, cwd, }) const expanded = await Promise.all( matches.map(async (match) => { if (path.extname(match) === '') { - return glob(`${match}/**/*${defaultExtension}`) + return glob(`${match}/**/*${defaultExtension}`, { + windowsPathsNoEscape: true, + }) } return [match] })