mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-30 02:36:30 +02:00
Relax email regex
This commit is contained in:
parent
5e5e8287ad
commit
49b283c091
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
angular.module('rallly')
|
angular.module('rallly')
|
||||||
.service('FormHelper', function(){
|
.service('FormHelper', function(){
|
||||||
this.emailRegexString = '^([\\w-\\.]+@([\\w-]+\\.)+[\\w-]{2,4})?$';
|
this.emailRegexString = '^\s+@\s+$';
|
||||||
this.emailRegex = new RegExp(this.emailRegexString);
|
this.emailRegex = new RegExp(this.emailRegexString);
|
||||||
this.prettyError = function(errors, field){
|
this.prettyError = function(errors, field){
|
||||||
if (errors.required) return field + " is required";
|
if (errors.required) return field + " is required";
|
||||||
|
|
Loading…
Add table
Reference in a new issue