-
```
Phonelib.parse('(249) 209-7272').country => "US" - returned default
Phonelib.parse('(249) 209-7272').valid_countries => []
Phonelib.parse(Phonelib.parse('(249) 209-7272').e164).country => …
-
Related to https://github.com/daddyz/phonelib/pull/288 (cc. @tgwizard).
**Request**: Can we add a `require 'rails/all'` to the Phonelib initializer? i.e.
```
if defined?(Rails)
require 'rai…
-
On version 0.9.4, when I run the following code:
```
p = Phonelib.parse('+14154055410')
p.valid?
```
an exception is raised with the following relevant backtrace:
```
*** NoMethodError Exceptio…
-
I am using phonelib 0.6.46 and I am having trouble validating some US phone numbers with area code 945. Wondering if this is a known bug.
Here is an example failure:
irb(main):002:0> Phonelib.par…
-
When setting the default country like so..
Phonelib.default_country = "DE"
Phonelib appears to return almost all numbers I tested as German numbers. Out of the 67 numbers I tried, from 60 di…
-
Hello,
We have found an edge case bug with the parse function of Phonelib.
`Phonelib.parse(number)` works fine for every 10 digits french numbers like `0635374637`
but with numbers starting w…
-
```
>> number = Phonelib.parse(979543666330)
=> #{:id=>"001", :country_code=>"979", :national=>"543666330", :format=>{:pattern=>"(\\d)(\\d{4})(\\d{4})", :leading_digits=>"[1359]", :format=>"$1 $2 $3…
-
similar to issue 168, 8 digit indian phone numbers do not parse properly, whereas 10 digit indian phone numbers parse correctly. Please note that the country code is prepended twice on 8 digit indian…
-
When parsing a german phone number string by calling `Phonelib.parse().international` the parsed number gets an extra country_code number.
E.g.:
`Phonelib.parse('491511234567').international` retu…
-
```
Phonelib.parse("5141111111").national
=> "(041) 111111"
```
I would expect the result to be (514) 111-1111