Mathias Bynens (2015-01-14T08:20:32.000Z)
d at domenic.me (2015-01-28T19:37:48.046Z)
I think it’s a bug — see https://codereview.chromium.org/788043005/diff/220001/src/parser.cc#newcode4354 for the discussion that led to this report. Your change would allow developers to use an escaped `-` in a character class, e.g. `/[a-f\-A-Z]/u`, rather than having to move it to the beginning (i.e. `/[-a-fA-Z]/u` or end (`/[a-fA-Z-]/u`) of the character class, as is possible today without the `u` flag. That is a good thing IMHO.