Skip to content

Commit

Permalink
Setting more methods as exportable by comparing against Java implemen…
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Truscott committed Apr 23, 2015
1 parent dc1209c commit 21460d6
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 78 deletions.
6 changes: 3 additions & 3 deletions phonenumbermatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func IsNationalPrefixPresentIfRequired(number *PhoneNumber) bool {
if number.GetCountryCodeSource() != PhoneNumber_FROM_DEFAULT_COUNTRY {
return true
}
var phoneNumberRegion = getRegionCodeForCountryCode(int(number.GetCountryCode()))
var phoneNumberRegion = GetRegionCodeForCountryCode(int(number.GetCountryCode()))
var metadata = getMetadataForRegion(phoneNumberRegion)
if metadata == nil {
return true
Expand Down Expand Up @@ -151,8 +151,8 @@ func AllNumberGroupsRemainGrouped(
// number itself, as we do not need to distinguish between
// different countries with the same country calling code
// and this is faster.
var region = getRegionCodeForCountryCode(int(number.GetCountryCode()))
if getNddPrefixForRegion(region, true) != "" &&
var region = GetRegionCodeForCountryCode(int(number.GetCountryCode()))
if GetNddPrefixForRegion(region, true) != "" &&
unicode.IsDigit(rune(normalizedCandidate[fromIndex])) {
// This means there is no formatting symbol after the
// NDC. In this case, we only accept the number if there
Expand Down
Loading

0 comments on commit 21460d6

Please sign in to comment.