[Webkit-unassigned] [Bug 122891] New: Yarr does not compile Peacekeeper email validation regex
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Oct 16 05:28:18 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=122891
Summary: Yarr does not compile Peacekeeper email validation
regex
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: jdemooij at mozilla.com
Created an attachment (id=214358)
--> (https://bugs.webkit.org/attachment.cgi?id=214358&action=review)
Shell testcase
I'm attaching a simple shell version of Peacekeeper's stringValidateForm test.
The good news is that Yarr is able to compile 4 of the 5 regular expressions. The bad news is that the other regex is interpreted and this slows us down. If I run the test in Safari it takes 1200 ms, with the email regex commented out it's 460 ms so the slow regex is where we spend most of our time on this test.
The email validation part is this:
input = "jaakko.alajoki at futuremark.com";
result = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(input);
--
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