[Webkit-unassigned] [Bug 176814] New: String.prototype.replace() put extra '<' in result when a named capture reference is used without named captures in the RegExp

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 12 16:43:50 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=176814

            Bug ID: 176814
           Summary: String.prototype.replace() put extra '<' in result
                    when a named capture reference is used without named
                    captures in the RegExp
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: msaboff at apple.com

According to the named capture proposed spec changes, when the string "$<" is seen in the replacement string but the search RegExp doesn't contain any named groups, "$<" should be copied to the output.  See step 1 for the "$<" row in Table 1of the proposal (https://tc39.github.io/proposal-regexp-named-groups/#table-45).  Currently we are copying "$<<".

-- 
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/20170912/8bb83427/attachment.html>


More information about the webkit-unassigned mailing list