Table of contents
METHOD |
RETURN |
DESCRIPTION |
---|---|---|
Returns reason when validation not passed |
||
boolean
|
Tests whether a phone number matches a valid pattern |
Returns reason when validation not passed.
ARGUMENT |
TYPE |
DESCRIPTION |
---|---|---|
|
String
|
The phone number in string |
|
String
|
ISO 3166-1 two-letter country code. Region that we are expecting the number to be from. This is only used if the number being parsed is not written in international format. |
Tests whether a phone number matches a valid pattern.
Return: boolean
ARGUMENT |
TYPE |
DESCRIPTION |
---|---|---|
|
String
|
The phone number in string |
|
String
|
ISO 3166-1 two-letter country code. Region that we are expecting the number to be from. This is only used if the number being parsed is not written in international format. |