I'm still not sure if it's worth it, after all it's just sugar for
`RegExp.escape(str).replace(/[a-z]/gu, m => `\\${m}`)`

On Tue, Jun 30, 2015 at 10:35 AM, Mathias Bynens <mathi...@opera.com> wrote:

> On Mon, Jun 29, 2015 at 9:04 PM, Benjamin Gruenbaum
> <benjami...@gmail.com> wrote:
> > Why? What advantage would it offer?
>
> See Scott’s previous email:
>
> On Mon, Jun 29, 2015 at 8:42 PM, C. Scott Ananian <ecmascr...@cscott.net>
> wrote:
> > Imagine trying to ensure that any characters over \u007f were
> > escaped.  You don't want an iterable over ~64k characters.
> >
> > In addition, a RegExp would allow you to concisely specify "hex digits,
> but
> > only at the start of the string" and some of the other oddities we've
> > considered.
>
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to