* Returns true if the phone number is valid.
()
| 166 | * Returns true if the phone number is valid. |
| 167 | */ |
| 168 | function isPhoneNumberValid() { |
| 169 | const pattern = /^\+[0-9\s\-\(\)]+$/; |
| 170 | const phoneNumber = getPhoneNumberFromUserInput(); |
| 171 | return phoneNumber.search(pattern) !== -1; |
| 172 | } |
| 173 | |
| 174 | /** |
| 175 | * Returns true if the ReCaptcha is in an OK state. |
no test coverage detected