Closed Riim closed 9 years ago
replace
content = content.replace(matches[i], replaceContent);
to
content = content.replace(matches[i], function() { return replaceContent; });
specials: $$, $&, $`, $', $n, $nn
'abc'.replace('b', "1$'") => "a1cc" 'abc'.replace('b', function() { return "1$'"; }) => "a1$'c"
This has been implemented, thanks!
replace
to
specials: $$, $&, $`, $', $n, $nn