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
    17
    jack.slocum will become famous soon enough 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
    547
    Vote Rating
    23
    svenna has a spectacular aura about svenna has a spectacular aura about

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

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."