From f6a7f43bcb742d9178d6e5f0d7a8d58284ceec52 Mon Sep 17 00:00:00 2001 From: Roy Yu Date: Sat, 17 Dec 2016 11:52:34 -0800 Subject: [PATCH] fixing lint warnings and add extra git ignore rules --- .gitignore | 1 + src/js/utility/validation.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 752c80e..01f17bc 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ /node_modules/ /.idea /docroot/ +/build/ .DS_Store npm-debug.log .eslintcache diff --git a/src/js/utility/validation.js b/src/js/utility/validation.js index 41eadb2..4847fc7 100644 --- a/src/js/utility/validation.js +++ b/src/js/utility/validation.js @@ -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'; }