Bug 14823
Summary: | Some XRegExp regular expressions are syntax errors in WebKit | ||
---|---|---|---|
Product: | WebKit | Reporter: | Geoffrey Garen <ggaren> |
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | ap, darin, ddkilzer, ian, oliver |
Priority: | P2 | Keywords: | InRadar |
Version: | 523.x (Safari 3) | ||
Hardware: | Mac | ||
OS: | OS X 10.4 | ||
URL: | http://blog.stevenlevithan.com/archives/xregexp-safari |
Geoffrey Garen
Reported here: http://blog.stevenlevithan.com/archives/xregexp-safari.
The following regexps are syntax errors in WebKit but not Firefox:
/[[\\]/
/[^[\\]/
/[abc[\\]/
"SyntaxError: Invalid regular expression: missing terminating ] for character class"
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Adam Roben (:aroben)
<rdar://problem/5336079>
Ian 'Hixie' Hickson
This seems to be fixed in the nightlies.