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

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 03c5b98 commit 350a8e9
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
@@ -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]
})

0 comments on commit 350a8e9

Please sign in to comment.