glob-to-regexp
glob-to-regexp copied to clipboard
handle \ escapes
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$/