Skip to content

Commit

Permalink
fixing lint warnings and add extra git ignore rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Roy Yu committed Dec 17, 2016
1 parent bdde5d4 commit f6a7f43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/node_modules/
/.idea
/docroot/
/build/
.DS_Store
npm-debug.log
.eslintcache
Expand Down
2 changes: 1 addition & 1 deletion src/js/utility/validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function phone(value: string) {
// Let's not start a debate on phone regex! This one is the best I can find, the best way to
// do it correctly is utilizing a third party verification, but for our use case, it is
// just overkill
if (!isEmpty(value) && !/^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s\./0-9]*$/g.test(value)) {
if (!isEmpty(value) && !/^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s/0-9]*$/g.test(value)) {
return 'Invalid phone number';
}

Expand Down

0 comments on commit f6a7f43

Please sign in to comment.