Add Slovakia to list of 6-digit shortcodes that libphonenumber misses

Fixes #4478
// FREEBIE
This commit is contained in:
Moxie Marlinspike 2016-02-02 14:15:19 -08:00
parent ce12e381a5
commit bc4dd7d002
1 changed files with 1 additions and 1 deletions

View File

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