showModalDialog icon indicating copy to clipboard operation
showModalDialog copied to clipboard

Error with returnValue including string "$1" (using eval)

Open MartinAcosta-dev opened this issue 1 year ago • 0 comments

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!

MartinAcosta-dev avatar Dec 07 '23 14:12 MartinAcosta-dev