1. #1

    Default Ext.form.VTypes email regexp

    Ext.form.VTypes email regexp


    The email regexp in Ext.form.VTypes is probably a bit too restrictive by default, only working with domains matching domain.tld. Domains like user@host.co.uk or user@some-host.com won't match.
    Currently:
    Code:
    var email = /^([\w]+)(.[\w]+)*@([\w]+)(.[\w]{2,4}){1,2}$/;
    This will allow more subdomains, hyphens in the subdomain and only letters in the TLD/country code:
    Code:
    var email = /^([\w]+)(.[\w]+)*@([\w-]+\.){1,5}([A-Za-z]){2,4}$/;

  2. #2
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    16
    jack.slocum will become famous soon enough

      0  

    Default


    Thanks Corey.
    Jack Slocum
    Ext JS Founder
    Original author of Ext JS 1, 2 & 3.
    Twitter: @jackslocum
    jack@extjs.com

  3. #3
    Touch Premium Member svenna's Avatar
    Join Date
    Jun 2007
    Location
    Oslo,Norway
    Posts
    407
    Vote Rating
    18
    svenna will become famous soon enough svenna will become famous soon enough

      0  

    Default


    Will you please make a less restrictive VType in the next public release?

    http://www.extjs.com/deploy/dev/exam...m/dynamic.html
    Will not validate mail-me@sventore.com (due to the "-")
    Sven Tore Iversen

  4. #4
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854
    Vote Rating
    2
    tryanDLS is on a distinguished road

      0  

    Default


    Please don't resurrect old threads to ask for something in an unsupported version. I suggest you search a little - there have been a number of discussions and modifications made to the email vtype in the 3.0 codebase.

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar