• Resolved pck09

    (@pck09)


    Hi!

    I’ve been using your plugin, and found a bug in the implementation.
    In your cf7cv_custom_form_validation function you have this regex for email validation: /^([*+!.&#$|\’\\%\/0-9a-z^_`{}=?~:-]+)@(([0-9a-z-]+\.)+[0-9a-z]{2,4})$/i

    It makes domain extensions that are longer than 4 characters invalid. However there are many domain extensions that are longer than 4 characters. Can you fix this pls?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mohan K

    (@mohanitpro)

    Hi pck09,

    Thanks for pointing out the bug. It really help others.

    We fixed it in v1.2.2 so you don’t need to modify your files manually.

    If you have any further issue or suggestion then please share on [email protected].

    Thanks,
    DigitalDyna

    Plugin Author Mohan K

    (@mohanitpro)

    Hi pck09,

    Hope you updated plugin and found it’s fixed.

    If you have any further issue or suggestion then please share on [email protected].

    Thanks,
    DigitalDyna

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Email field validation regex is wrong for long domain extensions’ is closed to new replies.