-
Notifications
You must be signed in to change notification settings - Fork 94
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
[BUG] Standard library replace_regex
function fails to replace slash characters
#481
Comments
I already have a workaround for this, which is to make
|
Note, if slash characters are already escaped, this may have slightly unexpected behaviour:
|
|
Yes I'm aware of that. Unfortunately we can't guarantee that callers of this stdlib function will not want to use "#" (or any other character we might pick) in the search or replace string; so it doesn't really give us anything. |
Describe the bug
The standard library
replace_regex
function callssed
internally, with commands/.../.../
, but if the search or replace string itself contains/
, this causes ased
syntax error.To Reproduce
Reproduce with one liner command:
Expected behavior
It should behave like this:
The text was updated successfully, but these errors were encountered: