-
Type:
Sub-task
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: None
-
Component/s: core-libs
-
None
-
b96
-
Verified
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 "$&"})