[Webkit-unassigned] [Bug 23409] New: RegExp 'replace()' function improperly processes '$$'

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jan 17 17:28:19 PST 2009


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

           Summary: RegExp 'replace()' function improperly processes '$$'
           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: bedney at technicalpursuit.com


All -

I've attached a testcase that shows that Webkit's JS engine is no longer
properly processing '$$' when present in a replace() using a RegExp, where the
replacement is a String (in Safari 3.2.X, this is working fine).

Within the replacement String, '$' is used as a metacharacter along with a
number or other special character to reference part of a match. Therefore, to
output a '$', you need to use '$$'. This should output a single '$'.

But in the latest Webkit builds (I'm using r40000), a '$$' is output when this
syntax is used. All other browsers, FF 3.0.X, IE7+, Chrome properly process
this (as does Safari as mentioned above).

I've attached a small testcase.

Cheers,

- Bill


-- 
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