Skip to content

Commit

Permalink
Merge 02f12d4 into 850ad31
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Oct 9, 2017
2 parents 850ad31 + 02f12d4 commit 636dae8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build-data.stubs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ TERRITORY: foreach my $territory (@territories) {
delete $validators->{mobile};
}
}
# Similarly to +1, don't pass is_mobile or is_fixed_line if could be either
if ($validators->{fixed_line} && $validators->{fixed_line} eq $validators->{mobile}) {
delete $validators->{fixed_line};
delete $validators->{mobile};
}
print $module_fh 'my '.Data::Dumper->new([$validators], [qw(validators)])->Dump();
my $codesfile = "libphonenumber/resources/geocoding/en/$IDD_country_code.txt";
if($IDD_country_code == 1) {
Expand Down
8 changes: 8 additions & 0 deletions build-tests.pl
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@
}
}

if(($IDD_country_code == 45 || $IDD_country_code == 56) && $test_method =~ /
is_mobile |
is_fixed_line
/x) {
warnonce("checking $ISO_country_code number +$IDD_country_code $number, as is_geographic *or* $test_method\n");
$test_method = [$test_method, 'is_geographic'];
}

if($IDD_country_code eq '44' && $number =~ /
^
121 234 5678
Expand Down

0 comments on commit 636dae8

Please sign in to comment.