-
-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Escaping of - not compatible with MongoDB #22
Comments
// @charmander |
I'm also using this library primarily to escape regex MongoDB queries. Any way to opt out of escaping |
Going back to the original |
charmander
added a commit
to charmander/escape-string-regexp
that referenced
this issue
Apr 16, 2020
Original form of sindresorhus#21, plus test description. Fixes sindresorhus#22.
Thanks @sindresorhus and @charmander! Just confirmed it's working for me. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I do a MongoDB query like:
In 3.0.0, this is not working with emails containing
-
. Do you know how I could write this using the new way to escape-
?The text was updated successfully, but these errors were encountered: