Skip to content
This repository has been archived by the owner on May 19, 2021. It is now read-only.

Curly braces are not handled #21

Open
stevelacey opened this issue Jan 13, 2020 · 0 comments
Open

Curly braces are not handled #21

stevelacey opened this issue Jan 13, 2020 · 0 comments

Comments

@stevelacey
Copy link

stevelacey commented Jan 13, 2020

Curly braces are not handled

> globToRegExp('./resources/lang/{en,fr}/*.json')

Expected:

/^\.\/resources\/lang\/(en|fr)\/.*\.json$/

or (minimatch produces this):

/^(?:\.\/resources\/lang\/en\.json|\.\/resources\/lang\/fr\.json)$/

Actual:

/^\.\/resources\/lang\/\{en\,fr\}\/.*\.json$/
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant