Address search: improve postcodes recognition

This commit is contained in:
Roman Inflianskas 2016-06-07 11:23:50 +03:00
parent b4682476e7
commit 7c9215454a

View file

@ -203,8 +203,9 @@ public class Postcode {
boolean result = false;
if (isCountryKnown(country)) {
Matcher matcher = getMatcher(s, country);
result = (matcher != null && matcher.find()) || s.matches("(.+\\d+.*|.*\\d+.+)");
result = matcher != null && matcher.find();
}
result = result || s.matches("(.+\\d+.*|.*\\d+.+)");
return result;
}