[Webkit-unassigned] [Bug 25978] New: RegExp test return incorrect result

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat May 23 06:10:15 PDT 2009


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

           Summary: RegExp test return incorrect result
           Product: WebKit
           Version: 525.x (Safari 3.2)
          Platform: PC
        OS/Version: Windows Vista
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: exfed at zel.pl


<script>
var str = '<script>';
for(var i=0;i<9999;i++)
  str += 'aaaaaaaaaa';
str += 'aaaaaaa</sc' + 'ript>';

alert(/<script[^>]*>([\s\S]*?)<\/script>/gi.test(str));
</script>
Script alerts false on Safari. Other browsers(IE, FF) returns true.
Regular expression is from mootools library.


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