Jordan Osete (2010-06-13T14:50:28.000Z)
Hello everybody.

How about standardizing something like RegExp.escape() ?
http://simonwillison.net/2006/Jan/20/escape/

It is trivial to implement, but it seems to me that this functionality 
belongs to the language - the implementation obviously knows better 
which characters must be escaped, and which ones don't need to.

Regards,

Jordan OSETE



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20100613/27fdea64/attachment.html>
domenic at domenicdenicola.com (2014-03-21T16:57:53.588Z)
How about standardizing something like RegExp.escape() ?
http://simonwillison.net/2006/Jan/20/escape/

It is trivial to implement, but it seems to me that this functionality 
belongs to the language - the implementation obviously knows better 
which characters must be escaped, and which ones don't need to.