mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-27 06:23:41 -04: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…
Add table
Add a link
Reference in a new issue