Skip to content

Conversation

guillaumevp
Copy link

This adds a regex for New Caledonia, based on the ITU document here:

Copy link

codecov bot commented Apr 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (4197b86) to head (4a5c5cd).
Report is 20 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #2388   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          107       107           
  Lines         2449      2449           
  Branches       619       619           
=========================================
  Hits          2449      2449           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -104,6 +104,7 @@ const phones = {
'fr-GF': /^(\+?594|0|00594)[67]\d{8}$/,
'fr-GP': /^(\+?590|0|00590)[67]\d{8}$/,
'fr-MQ': /^(\+?596|0|00596)[67]\d{8}$/,
'fr-NC': /^(\+?687)(75|76|77|78|79|80|81|82|83|84|85|86|87|89|90|91|92|93|94|95|96|97|98|99)\d{4}$/,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: this regex can be simplified: /^(\+?687)(7[5-9]|8[0-9]|9[0-9])\d{4}$/

@profnandaa
Copy link
Member

Thanks for your contribution! 🎉

@profnandaa profnandaa added 🎉 first-pr 🧹 needs-update For PRs that need to be updated before landing labels Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎉 first-pr 🧹 needs-update For PRs that need to be updated before landing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants