vanillalibrary.js
// I'm still concerned about it passing the format 1-(555)-555-5555  but it passed all the other tests.
I'm still concerned about it passing the format 1-(555)-555-5555  but it passed all the other tests.
I ' m still concerned about it passing the format 1 - ( 555 ) - 555 - 5555 but it passed all the other tests .
function telephoneCheck(str) {
let phoneRegExp = /^(1*)(\s*-*)(\d{3}|\(\d{3}\))(\s*-*)(\d{3})(\s*-*)(\d{4})$/
  if (str.match(phoneRegExp)) {
    return true
  }
return false
}
function telephoneCheck ( str ) { let phoneRegExp = / ^(1*)(\s*-*)(\d{3}|\(\d{3}\))(\s*-*)(\d{3})(\s*-*)(\d{4})$ / if ( str . match ( phoneRegExp ) ) { return true } return false }
I'm still concerned about it passing the format 1-(555)-555-5555  but it passed all the other tests.
I ' m still concerned about it passing the format 1 - ( 555 ) - 555 - 5555 but it passed all the other tests .