Skip to content

Commit 6ce3701

Browse files
author
daretobedifferent18
committed
Added simple regExp
1 parent 0600bd0 commit 6ce3701

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Application from '@ember/application' ;
1+
import Application from '@ember/application';
22
import Resolver from './resolver';
33
import loadInitializers from 'ember-load-initializers';
44
import config from 'open-event-frontend/config/environment';

app/utils/dictionary/demography.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1003,4 +1003,4 @@ export const countries = [
10031003
name : 'Zimbabwe',
10041004
code : 'ZW'
10051005
}
1006-
];
1006+
];

app/utils/validators.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export const validPhoneNumber = new RegExp(
8080
);
8181

8282
export const validEmail = new RegExp(
83-
/^(([^<>()[\]\\.,;\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/
83+
'[^@ \t\r\n]+@[^@ \t\r\n]+\.[^@ \t\r\n]+'
8484
);
8585

8686
export const isValidUrl = str => {

0 commit comments

Comments
 (0)