[Webkit-unassigned] [Bug 20142] New: /=/ weirdness (equal sign in regexp needs to be escaped)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 23 07:41:16 PDT 2008


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

           Summary: /=/ weirdness (equal sign in regexp needs to be escaped)
           Product: WebKit
           Version: 526+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: will_wk at hamstersoup.com


The regexp /=/ behaves very strangely unless you escape the equals sign.
Firefox does not require the escape.


WebKit: 
/=/.toString()  --> "//"   BUG?
/=/.test('=')   --> true   ok
'='.match(/=/)  --> [""]   BUG?
'='.match(/\=/) --> ["="]  ok 

FF3:
/=/.toString()  --> "/=/"  OK
/=/.test('=')   --> true   OK
'='.match(/=/)  --> ["="]  OK   
'='.match(/\=/) --> ["="]  OK


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