Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PhoneNumber.fromRaw issue on valid E164 phone number #25

Closed
teddy-dubal opened this issue Jun 8, 2022 · 1 comment
Closed

PhoneNumber.fromRaw issue on valid E164 phone number #25

teddy-dubal opened this issue Jun 8, 2022 · 1 comment

Comments

@teddy-dubal
Copy link

Hi
The static function PhoneNumber.fromRaw throw an exeception with a valid E164 phone number

PhoneNumber.fromRaw('+33655570500')

PhoneNumberException (PhoneNumberException(code: Code.invalidCountryCallingCode, description: countryCode 3 not found))

@cedvdb
Copy link
Owner

cedvdb commented Jun 8, 2022

I've added a test and it seems to work. I think you are doing something else like PhoneNumber.fromRaw('+3') which is an invalid country code.

I'll reopen if you think this is incorrect / found another problem.

This passes:

        expect(PhoneNumber.fromRaw('+33655570500').international, equals('+33655570500'));

@cedvdb cedvdb closed this as completed Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants