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