is_potentially_valid_phone_number

Function is_potentially_valid_phone_number 

Source
pub fn is_potentially_valid_phone_number(phone_number: &str) -> bool
Expand description

Check if a phone number is potentially valid but incorrectly formatted

§Arguments

  • phone_number - The phone number to check

§Returns

  • bool - True if the number might be valid with different formatting

§Examples

use phonelib::is_potentially_valid_phone_number;
 
let might_be_valid = is_potentially_valid_phone_number("123-456-7890");