Closed Bug 813249 Opened 9 years ago Closed 7 years ago
Regular expressions with [a-\\s] (and possibly others) throw exceptions
Code: var re = new RegExp("[a-\\s"); // (or \\d, \\w,..) Expected result: A regular expression object with `/[a-\s]/` as its value. Actual result: Exception: invalid range in character class. Other platforms: * Chrome: OK. * Safari: OK. * Opera: OK. * IE: not verified.
This works now, perhaps since the move to irregexp, perhaps because of other changes.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.