diff --git a/public/js/directives/form.directive.js b/public/js/directives/form.directive.js index 4b84b871d..d67f7f29f 100644 --- a/public/js/directives/form.directive.js +++ b/public/js/directives/form.directive.js @@ -1,6 +1,6 @@ angular.module('rallly') .service('FormHelper', function(){ - this.emailRegexString = '^([\\w-\\.]+@([\\w-]+\\.)+[\\w-]{2,4})?$'; + this.emailRegexString = '^\s+@\s+$'; this.emailRegex = new RegExp(this.emailRegexString); this.prettyError = function(errors, field){ if (errors.required) return field + " is required";