From 49b283c091c7b7086b553f3ea7a30c8994d4e608 Mon Sep 17 00:00:00 2001 From: Luke Vella Date: Tue, 19 Oct 2021 22:12:52 +0100 Subject: [PATCH] Relax email regex --- public/js/directives/form.directive.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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";