[Webkit-unassigned] [Bug 26911] New: $0 backreference no longer working

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 1 17:50:37 PDT 2009


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

           Summary: $0 backreference no longer working
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: johan.attali at orange-ftgroup.com


The $0 backreference in the replace function is no longer working and gives an
undefined value even if the pattern matched.

ex. "1T2".replace(/\w+/g, '<a href="http://$0">$0</a>'); is not working
while "1T2".replace(/(\w+)/g, '<a href="http://$1">$1</a>'); is working.

The object RegExp.$0 is to be set to undefined whatever the pattern matchin
was.


-- 
Configure bugmail: https://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