Fix libphonenumber shortcode data for Finland

Fixes #4853
// FREEBIE
This commit is contained in:
Moxie Marlinspike 2015-12-10 03:35:59 -08:00
parent 371ef3ce95
commit 3efcb5dfa1

View File

@ -29,8 +29,8 @@ public class ShortCodeUtil {
String localCountryCode = util.getRegionCodeForNumber(localNumberObject);
String bareNumber = number.replaceAll("[^0-9+]", "");
// libphonenumber doesn't seem to be correct for Germany
if (bareNumber.length() <= 6 && "DE".equals(localCountryCode)) {
// libphonenumber doesn't seem to be correct for Germany and Finland
if (bareNumber.length() <= 6 && ("DE".equals(localCountryCode) || "FI".equals(localCountryCode))) {
return true;
}