Skip to content
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

back and forward slashes issue #40

Open
mnakalay opened this issue Feb 2, 2019 · 1 comment
Open

back and forward slashes issue #40

mnakalay opened this issue Feb 2, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@mnakalay
Copy link

mnakalay commented Feb 2, 2019

Hello,

In your description you say "Though Windows may use /, , or \ as path separators, you can only use forward-slashes (/) when specifying glob expressions. Any back-slashes () will be interpreted as escape characters instead of path separators."

Tests I ran suggest it should be the opposite. I am using Windows 7.

I wanted to list all files except some, so I used forward slashes as per your suggestion '!(**.jpg|css/style.css)'
This kept throwing an error and failing. When I modified it to use back-slashes instead '!(**.jpg|css\\style.css)' it worked flawlessly.

@terkelg
Copy link
Owner

terkelg commented Feb 8, 2019

Hi @mnakalay
Thank you! I'll have a look at this. Could you be interested in doing a PR?

@terkelg terkelg added the bug Something isn't working label Feb 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants