rust-phonenumber icon indicating copy to clipboard operation
rust-phonenumber copied to clipboard

Library for parsing, formatting and validating international phone numbers.

Results 41 rust-phonenumber issues
Sort by recently updated
recently updated
newest added

I tried to parse "+1 520-878-2491" but it fails at parsing with an invalid country code. The Java and JavaScript libphonenumber do parse this correctly, and slight variations in this...

question

Making it possible to compare `PhoneNumber` for a sort-order.

The phone number "+1 800 723 3456" parses fine as expected. Then the formatted output is "+1 800-723-3456", but this fails to parse. Though "+1-800-723-3456" successfully parses. I'd suggest being...

This fixes https://github.com/rustonaut/rust-phonenumber/issues/43

```rust #![no_main] use libfuzzer_sys::fuzz_target; fuzz_target!(|data: &str| { phonenumber::parse(None, data); }); ``` Input: `" 2 22#:"` stack trace: ``` thread '' panicked at 'called `Option::unwrap()` on a `None` value', /home/jess/src/rust-phonenumber/src/parser/natural.rs:31:31 note:...

This fixes https://github.com/rustonaut/rust-phonenumber/issues/39

The link to this repository on crates.io is outdated. It links to https://github.com/1aim/rust-phonenumber, which clearly is not the current path to this repository.

Please note that these changes depend on the not yet released version 0.2.1 of [regex-cache](https://github.com/1aim/rust-regex-cache/pull/2). This should fix #26 @meh @rustonaut would be great if you guys could have a...