[Webkit-unassigned] [Bug 16696] JSCRE fails fails to match Acid3 regexp

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 1 14:43:55 PST 2008


http://bugs.webkit.org/show_bug.cgi?id=16696





------- Comment #4 from darin at apple.com  2008-01-01 14:43 PDT -------
(In reply to comment #3)
> Forward references to capture brackets that haven't been seen yet, in ES4, are defined to always match the empty string. So this:
>    /a(\2)(x)a/
> ...matches only "axa", not "axxa", and on a positive match always returns
> ['axa', '', 'x', 'a'].

OK, I see.

I believe I made a fix to our code to handle that correctly a while back.

Then I guess it's just the issue that our regular expression code doesn't
recognize the forward reference as a capture at all, because of the quirk of
treating them as octal escapes if they are higher than the number of capturing
brackets. And the fact that the number of capturing brackets is based on the
point in the parsing that we're at. I think a fix requires another pass over
the regular expression to count the capturing brackets.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list