Details
-
Sub-task
-
Resolution: Fixed
-
P4
-
None
-
None
-
b96
-
Verified
Description
The following should return "abc" as $& is a replacement pattern for the matched string:
"abc".replace("c", "$&");
However the following should return "ab$&":
"abc".replace("c", function(){return "$&"})
"abc".replace("c", "$&");
However the following should return "ab$&":
"abc".replace("c", function(){return "$&"})