[Webkit-unassigned] [Bug 55589] New: Parenthetical assertions don't work correctly with YARR Interpreter
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Mar 2 10:27:08 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=55589
Summary: Parenthetical assertions don't work correctly with
YARR Interpreter
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: pvarga at webkit.org
CC: barraclough at apple.com, msaboff at apple.com
The fast/regex/pcre-test-1 layout test fails with YARR Interpreter:
FAIL regex269.exec(input0); should be 12-sep-98. Was null.
The test case is:
regex269 = /(?=[^a-z]+[a-z])\d{2}-[a-z]{3}-\d{2}|(?![^a-z]+[a-z])\d{2}-\d{2}-\d{2}/;
var input0 = "12-sep-98";
It seems when a parenthetical assertion contains a term with a quantifier (+ or *) the YARR Interpreter
doesn't match the subpattern correctly.
Here is a simpler example:
var str = "aab".match(/(?=a+b)aab/);
result: null
expected: aab
These kind of patterns work well with YARR JIT.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list