I'm having an error when the returnValue includes the string "$1". The replace function (using eval) converts every occurrence of this to the string "window.".
I can modify the regex deleting the capturing group and the problem is solved, but i don't know why are these capturing groups used in a first place.
I'm having an error when the returnValue includes the string "$1". The replace function (using eval) converts every occurrence of this to the string "window.".
I can modify the regex deleting the capturing group and the problem is solved, but i don't know why are these capturing groups used in a first place.
Thanks!