Skip to content

Commit

Permalink
Allow City databases to have a suffix like -Europe
Browse files Browse the repository at this point in the history
  • Loading branch information
autarch committed Apr 15, 2015
1 parent 71923db commit 963a829
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/GeoIP2/Database/Reader.pm
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ sub city {
my $self = shift;
return $self->_model_for_address(
'City',
type_check => qr/^(?:GeoLite2|GeoIP2)-(?:Precision-)?City$/,
type_check => qr/^(?:GeoLite2|GeoIP2)-(?:Precision-|)?City(-[a-zA-Z])?$/,
@_
);
}
Expand Down

0 comments on commit 963a829

Please sign in to comment.