[Webkit-unassigned] [Bug 21485] URL regular expression fails on long strings

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 16 11:20:38 PDT 2009


mail at levinalex.net changed:

           What    |Removed                     |Added
                 CC|                            |mail at levinalex.net

------- Comment #4 from mail at levinalex.net  2009-03-16 11:20 PDT -------
saw something that seems to be the same bug:  the ExtJs framework has a regular
expression to validate email addresses:

  var mailrx = /^([\w]+)(.[\w]+)*@([\w-]+\.){1,5}([A-Za-z]){2,4}$/;

using this regular expression causes the following test cases to fail in Webkit
Nightlies and the Safari 4 beta

  testRegularExpressionMatching: function() {
    this.assert("info at exactlytwentycharac.com".match(mailrx));    /* fails */   
    this.assert("info at lessthantwentychar.com".match(mailrx));     /* passes */
    this.assert("info at foo.lessthantwentychars.de".match(mailrx)); /* fails */

(This is on OS X 10.5 with all updates, the Safari 4 beta installed and using
WebKit r41707)

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