mirror of
https://github.com/internetee/registry.git
synced 2025-05-28 16:39:55 +02:00
Relax email inputs on client side #2855
This commit is contained in:
parent
d5563a4d2b
commit
af6f3bc87e
4 changed files with 11 additions and 8 deletions
|
@ -18,3 +18,6 @@ $.validator.setDefaults
|
|||
error.insertAfter element
|
||||
return
|
||||
|
||||
jQuery.validator.addMethod 'lax_email', ((value, element) ->
|
||||
@optional(element) or (value.match(new RegExp("@", "g")) || []).length == 1
|
||||
), 'Please enter a valid email address.'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue