"Replace All" with $
replacement sometimes gets the replacement wrong
#942
Labels
bug
Something isn't working
$
replacement sometimes gets the replacement wrong
#942
Thanks in advance for your bug report!
What happened?
"Replace all" with match group replacement (
$N
) sometimes uses the wrong matching string. I'm not entirely sure what triggers it, and, for example, I'll sometimes see that within a single "replace all" action, some replacements will be right and some will be wrong.For example, I recently tried to replace
\b_impl_serverSocket(Start|Stop)\b
with_impl_socket$1
using "replace all." Of the three files that were affected, one was correct, and the other two had diffs like this:Pulsar version
1.114.0
Which OS does this happen on?
🍎 macOS
OS details
13.6.3
Which CPU architecture are you running this on?
ARM64/AArch64
What steps are needed to reproduce this?
prefix(Option1|Option2)
.newPrefix$1
.Note that some of the replacements are wrong.
Additional Information:
When you look at the preview for replacements in these cases (in the search results window), the preview looks correct.
The text was updated successfully, but these errors were encountered: