Summary: | REGRESSION(210837): RegExp containing failed non-zero minimum greedy groups incorrectly match | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Michael Saboff <msaboff> | ||||
Component: | JavaScriptCore | Assignee: | Michael Saboff <msaboff> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | buildbot, commit-queue, danlec, fpizlo, keith_miller, mark.lam, mathias, saam, webkit-bug-importer | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | WebKit Nightly Build | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Michael Saboff
2017-09-27 14:50:38 PDT
Fix in progress. /(Q)+|Z*Z/.test("Z ") *should* actually return true but e.g. /(Q)+|(Z)+Z/.test("Z ") should return false (In reply to Daniel LeCheminant from comment #3) > /(Q)+|Z*Z/.test("Z ") > > *should* actually return true but e.g. > > /(Q)+|(Z)+Z/.test("Z ") > > should return false You are right, sorry for the confusion. The RegExp in the description is wrong. Created attachment 322056 [details]
Patch
The test failures are due to changes r222586 and are being addressed in https://bugs.webkit.org/show_bug.cgi?id=177423. Comment on attachment 322056 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=322056&action=review > Source/JavaScriptCore/ChangeLog:10 > + greedy parenthesis have backtracked as far as possible. Prior to r210837 when non-zero minimum greedy > + parenthesis were factored into a fixed component and then a zero-based variable component. After Is there a typo in the sentence "Prior to r210837..."? I don't understand what it's trying to say. Comment on attachment 322056 [details] Patch Clearing flags on attachment: 322056 Committed r222601: <http://trac.webkit.org/changeset/222601> All reviewed patches have been landed. Closing bug. (In reply to Mark Lam from comment #7) > Comment on attachment 322056 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=322056&action=review > > > Source/JavaScriptCore/ChangeLog:10 > > + greedy parenthesis have backtracked as far as possible. Prior to r210837 when non-zero minimum greedy > > + parenthesis were factored into a fixed component and then a zero-based variable component. After > > Is there a typo in the sentence "Prior to r210837..."? I don't understand > what it's trying to say. I checked in a fix to that sentence. |