Skip to content

** does not work when in parentheses #484

@benmccann

Description

@benmccann

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions