-
Notifications
You must be signed in to change notification settings - Fork 0
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
[CLOSED] REVIEW ONLY: Fix regexp replace in Replace All #5288
Comments
Comment by MarcelGerber When there are only 3 params left, we should call the function with only 3 params, too. |
Comment by gruehle Everything looks good to me. I did a bunch of testing with 'Replace All', and everything worked as expected. |
Comment by peterflynn
OTOH I think it'd also be ok to just change the release notes to say $n substitution is only supported for regular Replace. |
Comment by njx
|
Comment by peterflynn Btw -- not related to this bug, but... if the user wanted the literal string "$1" to be the replacement when doing a regexp Replace, is there any escaping that would allow that? It looks like you'd normally be able to use "$$" to escape "$," but we don't appear to support that. |
Comment by MarcelGerber
|
Comment by njx
|
Comment by njx
|
Comment by MarcelGerber
|
Comment by njx
|
Issue by njx
Wednesday Oct 30, 2013 at 19:47 GMT
Originally opened as adobe/brackets#5772
For #5770.
When doing a replace all, the replace function used by regexp replace needs to use the matches from each item in the
replace all, not the match that was found in the calling
replace()
.njx included the following code: https://github.com/adobe/brackets/pull/5772/commits
The text was updated successfully, but these errors were encountered: