daddyz/phonelib

French FR mobile phone numbers beginning with 07 should be valid

hack3rvaillant opened this issue · 1 comments

They are not parsed correcly

Phonelib.parse("0702030405").full_e164.presence
=> "+330702030405"

leading zero should be removed

They are considered invalid

Phonelib.valid? '0702030405'
=> false

but they exist for years now

After exploring the source code I realized that my test fell into a edge case of non exsisting 07 numbers.
Sorry for the useless issue