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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 20 09:39:44 PDT 2009


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





--- Comment #2 from Johan Attali <johan.attali at orange-ftgroup.com>  2009-07-20 09:39:44 PDT ---
I just tried $& and it is indeed working. 
Though you are absolutely right (the specs only specify that digits 1-9 to be
used) you might want to keep $0 for backward compatibility, which is actually
why I found and filed this bug.

(In reply to comment #1)
> Is this true?  
> ECMA 262 says that $n is the nth capture where n is a single digit 1-9.
> ECMAScript5 Draft says the same. The matched substring is $&.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list