Closed
Bug 813249
Opened 13 years ago
Closed 11 years ago
Regular expressions with [a-\\s] (and possibly others) throw exceptions
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: anton, Unassigned)
Details
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.
| Assignee | ||
Updated•11 years ago
|
Assignee: general → nobody
Comment 1•11 years ago
|
||
This works now, perhaps since the move to irregexp, perhaps because of other changes.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•