Address search: improve postcodes recognition
This commit is contained in:
parent
b4682476e7
commit
7c9215454a
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue