Skip to content

Commit

Permalink
fix: try compatibility option
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjgoss committed Sep 30, 2023
1 parent 0719db3 commit f5577cc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/api/paths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]
})
Expand Down

0 comments on commit f5577cc

Please sign in to comment.