We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7770164 commit 560aebfCopy full SHA for 560aebf
4. Telephone Number Validator/telephonenumbervalidatore.js
@@ -0,0 +1,5 @@
1
+function telephoneCheck(str) {
2
+ return /^(1\s|1)?(\(\d{3}\)|\d{3})(-|\s)?\d{3}(-|\s)?\d{4}$/.test(str)
3
+}
4
+
5
+telephoneCheck("555-555-5555");
0 commit comments