-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Difference behavior for (
and )
on windows and linux
#160
Comments
Hmm…, I see that on my Windows 10 machine (NTFS, File Explorer, Powershell) I cannot create directory with https://docs.microsoft.com/en-us/windows/desktop/fileio/naming-a-file#naming-conventions Any way this is a issue for micromatch or picomatch: // micromatch
/^(?:(?:\.[\\\/](?=.))?(?:special-[^\\\/]*?file)\.txt(?:[\\\/]|$))$/
// false
// minimatch
/^(?:(?=.)\(special-[^\/]*?file\)\.txt)$/
// true
// picomatch
/^(?:(?=.)(special\-[^\\\/]*?file)\.txt)$/
// false I'll create a separate issue for picomatch. |
As we found out in the linked issue, this is normal behavior. So, I will describe this behavior in the |
Unfortunately, it will go to release only with |
Environment
Actual behavior
We have
[special?directory]/(special-*file).txt
(yep it is valid name on windows)Pattern -
(special-*file).txt
cwd -
[special?directory]
Linux :
['(special-*file).txt']
Windows:
[]
Expected behavior
Equals behavior.
Steps to reproduce
Below
Code sample
From CI https://ci.appveyor.com/project/webpack-contrib/copy-webpack-plugin/builds/22485753/job/rqpb76mp3wxtlfqh
The text was updated successfully, but these errors were encountered: