Changeset 1889


Ignore:
Timestamp:
2011-04-19 09:31:57 (13 months ago)
Author:
mpo
Message:

fixes @453 - the whole string should match the regexp, not just a portion!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/kauri-forms/kauri-forms-framework/src/main/kauri/static-{build}.key/kauri.forms/basic-validators.js

    r1864 r1889  
    1818    // define re-useable regexes once 
    1919    // email regex from - http://www.regular-expressions.info/email.html 
    20     var EMAIL_REGEX = /[a-z0-9!#$%&\'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&\'*+\/=?^_\`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/i; 
     20    var EMAIL_REGEX = /^[a-z0-9!#$%&\'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&\'*+\/=?^_\`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i; 
    2121 
    2222    // uri regex from http://www.osix.net/modules/article/?id=586, 
Note: See TracChangeset for help on using the changeset viewer.