You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently if you escape a string with Hyphen-Minus in it it get converted to some \x2d which is then not working once executing the regexp search (for example with postgresql regexp_replace(....) which accept regexp.
I am not sure if that is an issue in postgresql or in this library, still to me it doesn't seem like minus would actually need to be escaped.
Example:
escapeRegExp('some-value-to-escape')
it returns 'some\x2dvalue\x2dto\x2descape' which is not really required for regexp I think, but maybe I am wrong.
In any cases I couldn't then use this library for my usecase.
The text was updated successfully, but these errors were encountered:
Currently if you escape a string with Hyphen-Minus in it it get converted to some \x2d which is then not working once executing the regexp search (for example with postgresql regexp_replace(....) which accept regexp.
I am not sure if that is an issue in postgresql or in this library, still to me it doesn't seem like minus would actually need to be escaped.
Example:
it returns 'some\x2dvalue\x2dto\x2descape' which is not really required for regexp I think, but maybe I am wrong.
In any cases I couldn't then use this library for my usecase.
The text was updated successfully, but these errors were encountered: