[Webkit-unassigned] [Bug 23121] RegExp fails for non-greedy quatifier following negative char sets w/ single char
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Feb 6 12:25:11 PST 2020
https://bugs.webkit.org/show_bug.cgi?id=23121
Alexey Shvayka <shvaikalesh at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |shvaikalesh at gmail.com
Resolution|--- |CONFIGURATION CHANGED
--- Comment #2 from Alexey Shvayka <shvaikalesh at gmail.com> ---
(In reply to Prestaul from comment #0)
> RegExp fails to properly match strings when the pattern includes a
> non-greedy quantifier for a negative character class that only contains one
> character. For example:
>
> 'FAILURE'.replace(/^[^Z]*?$/g, 'SUCCESS'); // output: "FAILURE"
> 'FAILURE'.replace(/^[^Z]+?$/g, 'SUCCESS'); // output: "FAILURE"
As of rev. 255785, both test cases output "SUCCESS".
Test coverage: https://trac.webkit.org/browser/webkit/trunk/LayoutTests/fast/regex/script-tests/pcre-test-1.js?rev=255785#L2753
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200206/eb712248/attachment.htm>
More information about the webkit-unassigned
mailing list