[Schmitzm-commits] r2203 - trunk/schmitzm-adresses/src/main/java/de/schmitzm/adresses

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Mon Jan 28 20:19:03 CET 2013


Author: alfonx
Date: 2013-01-28 20:19:03 +0100 (Mon, 28 Jan 2013)
New Revision: 2203

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	2013-01-28 18:44:51 UTC (rev 2202)
+++ trunk/schmitzm-adresses/src/main/java/de/schmitzm/adresses/AddrStringUtil.java	2013-01-28 19:19:03 UTC (rev 2203)
@@ -188,9 +188,9 @@
 		String removeStrassePrefixTemporarely = null;
 
 		if (stringStrHnZusatz.length > 0 && stringStrHnZusatz[0] != null) {
-			if (stringStrHnZusatz[0].startsWith("3-")) {
+			if (RegexCache.getInstance().matches("^\\d-", stringStrHnZusatz[0])) {
+				removeStrassePrefixTemporarely = stringStrHnZusatz[0].substring(0, 2);
 				stringStrHnZusatz[0] = stringStrHnZusatz[0].substring(2);
-				removeStrassePrefixTemporarely = "3-";
 			}
 		}
 



More information about the Schmitzm-commits mailing list