Oddly accepted RegExps

Isiah Meadows isiahmeadows at gmail.com
Fri Jun 3 08:20:31 UTC 2016

These three RegExps don't appear valid, even after reading the Annex B, but
they do behave consistently in both Chrome and Firefox. They are listed
here with equivalent regexps:

- `/[[]/` -> `/\[\[\]/`
- `/[]]/` -> `/(?!)/` (i.e. nothing)
- `/a{,,/` -> `/a\{,,+/`

Is this a spec bug or an implementation bug in the parsing?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20160603/ae0fc0b1/attachment.html>

More information about the es-discuss mailing list