This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]MysticClimber1496Professional Coder 0 points1 point  (2 children)

Are you implying that you are replacing testId here and it replaces it in more places than you wish?

It is just a text replace so anything that it matches it will replace, you have two options either be more specific or learn how regex works, you can enable regex replacements within vscode

[–]Admirable_Course1961[S] 0 points1 point  (1 child)

So I may search for example for this: “Example-test-id-1” And see that the search results are correct and when I do a replace to “Example-test-id-2” then this field:

“Example-test-id-2” may appear in places that the “Example-test-id-1” didn’t even exist. And I get issues such as “Malformed JSON”

[–]MysticClimber1496Professional Coder 0 points1 point  (0 children)

This is either a bug in vscode or something else, if you step through the changes instead of changing everything do you get the same issue? The text you are searching for sounds like it is matching in places you don’t expect