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

** does not work when in parentheses #484

Open
benmccann opened this issue Jan 30, 2025 · 0 comments
Open

** does not work when in parentheses #484

benmccann opened this issue Jan 30, 2025 · 0 comments

Comments

@benmccann
Copy link

Make a file test/utils/test-file and then run the following code:

const fg = require('fast-glob');

console.log(fg.globSync('test(/utils/**)'));
console.log(fg.globSync('test/utils/**'));

It will print:

[]
[ 'test/utils/test-file' ]

I would expect it to print:

[ 'test/utils/test-file' ]
[ 'test/utils/test-file' ]

Tracked this down to an issue in picomatch, which I filed there: micromatch/picomatch#142

I thought I'd still file an issue here in case it's helpful and you were interested in trying to resolve it either here or upstream, but feel free to close if the upstream issue is sufficient

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant