mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
Update teacher survey email validation
Removing restrictive regex matching.
This commit is contained in:
parent
e46613bf7f
commit
02095a8ddd
1 changed files with 1 additions and 2 deletions
|
@ -47,8 +47,7 @@ module.exports = class TeachersFreeTrialView extends RootView
|
|||
$('.container-num-students').removeClass('has-error')
|
||||
$('.container-heard-about').removeClass('has-error')
|
||||
$('.error-message').hide()
|
||||
emailPattern = /^([\w.-]+)@([\w.-]+)\.([a-zA-Z.]{2,6})$/i
|
||||
unless email?.match(emailPattern)
|
||||
unless email
|
||||
$('.container-email-address').addClass('has-error')
|
||||
$('.error-message').show()
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue