* Returns true if the input of phone number entry is valid. * @return {boolean} Whether the phone number is valid.
()
| 508 | * @return {boolean} Whether the phone number is valid. |
| 509 | */ |
| 510 | function isPhoneNumberValid() { |
| 511 | const pattern = /^\+[0-9\s\-()]+$/; |
| 512 | const phoneNumber = phoneNumberInput.value; |
| 513 | return phoneNumber.search(pattern) !== -1; |
| 514 | } |
| 515 | |
| 516 | /** |
| 517 | * Returns true if the ReCaptcha is in an OK state. |
no outgoing calls
no test coverage detected