You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/*Return true if the passed string looks like a valid US phone number.
The user may fill out the form field any way they choose as long as it has the format of a valid US number. The following are examples of valid formats for US numbers (refer to the tests below for other variants):
555-555-5555
(555)555-5555
(555) 555-5555
555 555 5555
5555555555
1 555 555 5555
*/
if (str.match(/^1[-\(]\d{3}[-\)]\d{3}[-]\d{4}|^\d{10}\b|^\d{3}-\d{3}-\d{4}|^1\s[\(]\d{3}[\)]\s\d{3}-\d{4}|^\(\d{3}\)\d{3}-\d{4}|^1\s\d{3}[\s\-]\d{3}[\s\-]\d{4}/gm)){