[Schmitzm-commits] r1897 - trunk/schmitzm-adresses/src/main/java/de/schmitzm/adresses
scm-commit at wald.intevation.org
scm-commit at wald.intevation.org
Mon Mar 12 00:49:47 CET 2012
Author: alfonx
Date: 2012-03-12 00:49:47 +0100 (Mon, 12 Mar 2012)
New Revision: 1897
Modified:
trunk/schmitzm-adresses/src/main/java/de/schmitzm/adresses/AddrStringUtil.java
Log:
Modified: trunk/schmitzm-adresses/src/main/java/de/schmitzm/adresses/AddrStringUtil.java
===================================================================
--- trunk/schmitzm-adresses/src/main/java/de/schmitzm/adresses/AddrStringUtil.java 2012-03-11 23:35:17 UTC (rev 1896)
+++ trunk/schmitzm-adresses/src/main/java/de/schmitzm/adresses/AddrStringUtil.java 2012-03-11 23:49:47 UTC (rev 1897)
@@ -564,11 +564,13 @@
int firstNumIdx = -1;
Matcher firstNumM = firstNumP.matcher(strasse);
if (firstNumM.find()) {
+ firstNumIdx = firstNumM.start();
boolean moreFound = true;
while (moreFound && firstNumM.start() <= 2) {
moreFound = firstNumM.find();
+ if (moreFound)
+ firstNumIdx = firstNumM.start();
}
- firstNumIdx = firstNumM.start();
}
String s2 = "";
More information about the Schmitzm-commits
mailing list