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

Formatting bug with +599 telephone numbers #122

Closed
percivalalb opened this issue Mar 6, 2023 · 4 comments
Closed

Formatting bug with +599 telephone numbers #122

percivalalb opened this issue Mar 6, 2023 · 4 comments

Comments

@percivalalb
Copy link
Contributor

percivalalb commented Mar 6, 2023

The country code +599 was assigned to the Netherlands Antilles (dissolved in 2010), and is now in use by Curaçao and the Caribbean Netherlands (Bonaire, Sint Eustatius and Saba)

https://en.wikipedia.org/wiki/Telephone_numbers_in_Cura%C3%A7ao_and_the_Caribbean_Netherlands

The format function no longer seems to work for the +599 country code. Not looked into it more than observing the difference.

  • Number::Phone 3.8007
$  perl -MNumber::Phone -e 'my $p = Number::Phone->new("+5997900000"); print $p->format || "empty", "\n";'
+599 7900000
  • Number::Phone 3.9000
$  perl -MNumber::Phone -e 'my $p = Number::Phone->new("+5997900000"); print $p->format || "empty", "\n";'
empty
DrHyde added a commit that referenced this issue Mar 6, 2023
spit out +CC SUBSCRIBER instead of nothing.

Was introduced in ce4e800, see #122
@DrHyde
Copy link
Owner

DrHyde commented Mar 6, 2023

Thanks, 9277ad2 should fix that. I'll push out a new release once the CI has finished chewing on it.

@percivalalb
Copy link
Contributor Author

Thanks for looking at it so promptly.

@DrHyde
Copy link
Owner

DrHyde commented Mar 7, 2023

I promise to not always be so conscientious :-)

@DrHyde
Copy link
Owner

DrHyde commented Mar 7, 2023

3.9001 has the fix in and is on its way to the CPAN.

@DrHyde DrHyde closed this as completed Mar 7, 2023
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