You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Still it's clear it should be formatted as (555) 555-55-55 nationally, and +1 555-555-55-55 internationally, and indeed if I do Phonelib.add_additional_regex :us, Phonelib::Core::MOBILE, '555\d{7}', Phonelib knows how to format it.
@daddyz a version change from 0.8.3 to 0.9.0 might have been better here, well actually from 0.9.x to 0.10.0 because of the other breaking change earlier #297 (comment)
E.g.
+15555555555
is possible but not valid. So I getStill it's clear it should be formatted as
(555) 555-55-55
nationally, and+1 555-555-55-55
internationally, and indeed if I doPhonelib.add_additional_regex :us, Phonelib::Core::MOBILE, '555\d{7}'
, Phonelib knows how to format it.Indeed, https://libphonenumber.appspot.com/phonenumberparser?number=%2B15555555555 gives
but from its code I think
invalid
is due to an explicit check and "Original format" is the international format in this case.Is it possible to change the formatting methods to work in this way or at least to add an option?
The text was updated successfully, but these errors were encountered: