glob-to-regexp icon indicating copy to clipboard operation
glob-to-regexp copied to clipboard

handle \ escapes

Open vapier opened this issue 5 years ago • 0 comments

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$/

vapier avatar Apr 26 '20 22:04 vapier