New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Glob 7.2.0 -> 8.0.3 glob.sync returns different result, why? #480
Comments
glob v8 updated minimatch, the library that does glob's matching, to v5. Minimatch v5 breaks windows glob matching by forcing all inputs to use forward slashes. Backslashes are considered escape characters. Since you're using the path module, it will automatically use backslashes for you since you're on windows. There are two solutions:
|
Thanks for the explanation. |
1 task
This was referenced Jan 19, 2023
18 tasks
1 task
9 tasks
cmotsn
pushed a commit
to cmotsn/ngx-translate-extract
that referenced
this issue
Apr 26, 2023
Since glob@9, glob pattern require `/` as path separator (see isaacs/node-glob#480)
6 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi guys.
I'm using Windows with node 16.12 and npm 8.1.0
Couldn't figure this out by myself.
I have a simple scenario:
npm i glob@7.2.0
Result = [ 'C:/DEV/glob/a.txt', 'C:/DEV/glob/b.txt' ]
npm i glob@8.0.3
Result = []
Not sure what I should do here. Tried googling for some time but couldn't find an explanation.
Can anybody help me?
Thanks!
The text was updated successfully, but these errors were encountered: