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

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Sun Sep 9 00:10:05 CEST 2012


Author: alfonx
Date: 2012-09-09 00:10:05 +0200 (Sun, 09 Sep 2012)
New Revision: 2083

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-09-08 20:38:38 UTC (rev 2082)
+++ trunk/schmitzm-adresses/src/main/java/de/schmitzm/adresses/AddrStringUtil.java	2012-09-08 22:10:05 UTC (rev 2083)
@@ -483,9 +483,12 @@
 
 		strasse = strasse.toLowerCase();
 
+		strasse = RegexCache.getInstance().replaceAll(strasse, "\\(.*?\\)", "");
+		
 		strasse = RegexCache.getInstance().replaceAll(strasse, "x{2,}$", "");
 		strasse = RegexCache.getInstance().replaceAll(strasse, "\\sx+$", "");
 
+		
 		strasse = RegexCache.getInstance().replaceAll(strasse, "wegx$", "weg");
 		strasse = RegexCache.getInstance().replaceAll(strasse, "strassex$", "strasse");
 		strasse = RegexCache.getInstance().replaceAll(strasse, "alleex$", "allee");



More information about the Schmitzm-commits mailing list