Menu

#1016 replace JS method does not support $&, $` and $' replacement

Latest SVN
closed
None
5
2012-10-21
2010-01-20
Anonymous
No

The JS String object's replace method supports more than group replacements ($n). See https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/replace for other constructs.

The submitted patch adds test cases for all three.

Discussion

  • Marc Guillemot

    Marc Guillemot - 2010-01-23

    Now fixed in SVN. Thanks for the test cases.

     

Log in to post a comment.