RegExp.escape()

Benjamin Gruenbaum benjamingr at gmail.com
Mon Jun 29 19:04:22 UTC 2015


Why? What advantage would it offer?

On Mon, Jun 29, 2015 at 9:49 PM, C. Scott Ananian <ecmascript at cscott.net>
wrote:

> And I'm suggesting that `RegExp.escape(str, /[image: ☺]/ug)` is a much
> better idea.​
>   --scott
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150629/693cd752/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: emoji_u263a.png
Type: image/png
Size: 1681 bytes
Desc: not available
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150629/693cd752/attachment.png>


More information about the es-discuss mailing list