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

handle \ escapes #22

Open
vapier opened this issue Apr 26, 2020 · 0 comments
Open

handle \ escapes #22

vapier opened this issue Apr 26, 2020 · 0 comments

Comments

@vapier
Copy link

vapier commented Apr 26, 2020

adding a \ before a glob character should treat it as a plain character. the current behavior ignores it completely.

# Bad behavior.
> globToRegExp('foo\\*bar')
/^foo\.*bar$/

# Expected result:
/^foo\*bar$/
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