-
Notifications
You must be signed in to change notification settings - Fork 112
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
Difference behavior for dot files on windows and linux #159
Comments
It looks weird. Does not work on Windows 10 and WSL (Ubuntu). Also does not work with the This a RegExp for /^(?:(?:\.[\\\/](?=.))?(?:bench\.js|directory[\\\/](?:(?!(?:[\\\/]|^)(?:\.{1,2})($|[\\\/]))(?!\.{2}).)*?[\\\/](?!(?:^|[\\\/])\.{1,2}(?:$|[\\\/]))(?!(\.{2}|\.[\\\/]))(?=.)[^\\\/]*?)(?:[\\\/]|$))$/ The entries in my directory:
And…
|
As a temporary solution, you can divide the pattern into several: const entries = fg.sync(['bench.js', 'directory/**/*'], {
dot: true
}); |
@mrmlnc thanks, we want to migrate |
FWIW, the tests passed with node-glob because node-glob can't handle non-extglob parenthesis and so it just escapes everything, resulting in To use parens with micromatch, you can either use a valid extglob, like Happy to help if you still have questions. |
@jonschlinkert can you clarify with examples, thanks |
The pattern I think that was the only failing pattern, correct? The reason node-glob matched before is that minimatch assumes that |
FWIW I'm definitely open to changing the default behavior in micromatch/picomatch to assume that |
Sorry guys, I don't have free time right now. I'll be back as soon as I can. Add a record to the ToDo. |
No worries take your time! |
I suggest we relocate discussion to the Picomatch repository. It seems that in this ticket we had to talk about curly braces. |
The original problem is fixed after migration from |
Environment
Actual behavior
We have file
directory/.dottedfile
pattern -
{file.txt,noextension,directory/**/*}
On linux - file founded
On windows - no
https://ci.appveyor.com/project/webpack-contrib/copy-webpack-plugin/builds/22457587/job/y5320ckr1fvs6r67
Expected behavior
Founded on linux and windows, or provide documentation why it is doesn't work and/or how can be fixed
Steps to reproduce
Below
Code sample
The text was updated successfully, but these errors were encountered: