[Webkit-unassigned] [Bug 21431] New: String.replace does not supported $& replacement metacharacter when search term is not a RegExp
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Oct 7 10:04:12 PDT 2008
https://bugs.webkit.org/show_bug.cgi?id=21431
Summary: String.replace does not supported $& replacement
metacharacter when search term is not a RegExp
Product: WebKit
Version: 528+ (Nightly build)
Platform: Macintosh
URL: javascript:alert("asdf".replace("as", "$&$&$&"))
OS/Version: Mac OS X 10.5
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: mrowe at apple.com
"asdf".replace("as", "$&$&$&") gives "$&$&$&df" rather than the expected
"asasasdf".
"asdf".replace(/as/, "$&$&$&") correctly gives "asasasdf".
--
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