Skip to main content

is_valid_phone

Function is_valid_phone 

Source
pub fn is_valid_phone(s: &str) -> bool
Expand description

true when s looks like a phone number: between 7 and 15 digits (the E.164 ceiling), with only digits and the common separators + - ( ) space . in between. This is a typo guard, not E.164.