Open FrancescoLuzzi opened 3 weeks ago
Go example run to recreate the edge case described: https://go.dev/play/p/TveUE4pFo6L?v=goprev
Also this one https://go.dev/play/p/tv5Q7FFkt0v
In a nutshell, when you want to escape the capture group placeholders in a replaceString, instead of writing something like "\$" you'll need to write "$$"
Bug Description
Can't replace a string with a new string containing a
$
inside it. The golang docs on regexp.ReplaceAllString and regexp.Expand states that in this case you should use$$
Reproduction steps
golang
flavoursubstitution
function$$test
Expected Outcome
The substitution pattern should not error and return the modified string
Pretty sure this is a logic error, if you still need browser and os infos let me know