-
Notifications
You must be signed in to change notification settings - Fork 152
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
IsEmergency functions for short numbers #191
IsEmergency functions for short numbers #191
Conversation
shortnumber_info.go
Outdated
@@ -1,6 +1,8 @@ | |||
package phonenumbers | |||
|
|||
import ( | |||
"slices" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use golang.org/x/exp/slices
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #191 +/- ##
==========================================
+ Coverage 46.81% 47.61% +0.80%
==========================================
Files 11 11
Lines 3798 3818 +20
==========================================
+ Hits 1778 1818 +40
+ Misses 1869 1851 -18
+ Partials 151 149 -2 ☔ View full report in Codecov by Sentry. |
@S4more thanks! Released as 1.5.0 |
Added
ConnectsToEmergencyNumber
andIsEmergencyNumber
based on Java implementation.There was also a typo XML builder that would prevent the
emergency
XML tag from being parsed.The metadata for shortnumbers needs to be updated. Not sure if I should also update the other as well
partially solves #184