phone-number-verifier

Crates.iophone-number-verifier
lib.rsphone-number-verifier
version1.0.1
sourcesrc
created_at2021-08-02 10:01:45.661156
updated_at2021-08-02 10:09:12.586097
descriptionphone number verification library for rust
homepage
repositoryhttps://github.com/aniketfuryrocks/phone-number-verifier
max_upload_size
id430363
size24,501
Aniket Prajapati (aniketfuryrocks)

documentation

README

Crates.io docs.rs

Phone Number Verifier

phone number verification library for rust

With Country Code

pub fn verify_phone_number_with_country_code(ph: &str) -> bool
^(\+\d{1,2}\s?)?1?\-?\.?\s?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}$

Without Country Code

pub fn verify_phone_number_without_country_code(ph: &str) -> bool
^1?\-?\.?\s?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}$
Commit count: 10

cargo fmt