-
-
Notifications
You must be signed in to change notification settings - Fork 88
Brace expansion matches single item #49
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
According to the braces library, braces expansion should not match a single item like {foo}. However, picomatch does interpret this expression.
braces:
braces('{foo}')
//=> ['{foo}']picomatch:
picomatch.parse('{foo}').output
//=> '(foo)'Compare that to when there are multiple items:
braces('{foo,bar}')
//=> ['(foo|bar)']
picomatch.parse('{foo,bar}').output
//=> '(foo|bar)'It seems to me like the behavior should match in both cases.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working