Update teacher survey email validation

Removing restrictive regex matching.
This commit is contained in:
Matt Lott 2015-06-05 11:47:12 -07:00
parent e46613bf7f
commit 02095a8ddd

View file

@ -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