[OPEN] [#1829] regex not validated on paste

  1. #1

    [OPEN] [#1829] regex not validated on paste


    see a simple textfield for SSN entry. Note the nice REGEX we use that just allows numbers. try to type in "111-22-3333" and it only accepts the numbers. Fantastic!!

    Now type "111-22-3333" in notepad. Copy it and paste it into the textfield. it is pasted WITH the dashes and no validation occurs and it is allowed. yikes!

    seems like regex validation is not applied to pasting.


    <ext:TextField ID="TextFieldSocialSecurityNumber" runat="server" MaxLength="9" LabelStyle="font-weight:bold;" FieldLabel="Social Security Number" DataIndex="socialSecurityNumber" Text="" IndicatorText="*" IndicatorCls="red-text" AllowBlank="false" PaddingSpec="3 10 0 10" MaskRe="[0-9.]/" Note="Numbers only (no dashes or spaces)" />
  2. #2
    Hello @Z!

    Thanks for reporting the issue, we'll take a better look at this, possibly providing you an override if you so require, and will also log an issue as soon as we have a better hang of what's going on in that.

    It seems like using Ext JS's InputMask feature works fine.

    Furthermore it using Ext JS's native InputMask implementation or Ext.NET's InputMask plugin also works fine. Only the MaskRe feature is subject to this issue.

    The issue is still reproducible upstream, with pure Ext JS 7.2.0: fiddle reproducing it.

    We'll post back soon, let us know if you can use the inputMask setting until a proper fix for this issue takes place.
    Fabrício Murta
    Developer & Support Expert
  3. #3
    Hello again @Z!

    We don't have an override that fixes that still, let us know if you require it, but we've ruled out the issue as being upstream (from "pure Ext JS") and logged it under issue #1829 in our issues tracker!

    We'll post a follow-up here as soon as we have a fix for that.
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. [OPEN] [#320] RegEx Case sensitive
    By farallones in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Aug 08, 2013, 6:04 AM
  2. Password Validated doesn't work. Please help me.
    By caminoui in forum 2.x Help
    Replies: 1
    Last Post: Sep 07, 2012, 3:57 AM
  3. Regex not compiled
    By ATSistemi in forum Open Discussions
    Replies: 2
    Last Post: May 26, 2010, 2:15 PM
  4. REGEX
    By hbbazan in forum 1.x Help
    Replies: 0
    Last Post: Jan 27, 2010, 4:09 PM
  5. [CLOSED] Regex Error
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 28, 2009, 4:18 AM

Posting Permissions