Skip to content

Commit

Permalink
test: 🚨 fix filtering for Windows paths
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Mar 3, 2020
1 parent 2af5ff4 commit 815234e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function filter(workspace: Workspace, filter: string) {
workspace.packages = workspace.packages.filter(
p =>
regex.test(p.name || "") ||
regex.test(path.relative(workspace.root, p.root))
regex.test(path.relative(workspace.root, p.root).replace(/\\/gu, "/"))
)
return workspace
}

0 comments on commit 815234e

Please sign in to comment.