Skip to content

Brace expansion matches single item #49

@mojavelinux

Description

@mojavelinux

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions