[Dive4elements-commits] [PATCH] Allow km-ranges without decimal separator in bed height import

Wald Commits scm-commit at wald.intevation.org
Tue Mar 26 18:07:00 CET 2013


# HG changeset patch
# User Tom Gottfried <tom.gottfried at intevation.de>
# Date 1364317602 -3600
# Node ID 765013c837b1f92ad4ff2d72807bd25d374825ec
# Parent  7aeb2c1016289bc785e62c31cb2392622b405808
Allow km-ranges without decimal separator in bed height import

diff -r 7aeb2c101628 -r 765013c837b1 flys-backend/src/main/java/de/intevation/flys/importer/parsers/BedHeightParser.java
--- a/flys-backend/src/main/java/de/intevation/flys/importer/parsers/BedHeightParser.java	Tue Mar 26 18:04:59 2013 +0100
+++ b/flys-backend/src/main/java/de/intevation/flys/importer/parsers/BedHeightParser.java	Tue Mar 26 18:06:42 2013 +0100
@@ -67,7 +67,7 @@
         Pattern.compile("^ausgewertete Peilbreite: (\\d*).*");
 
     public static final Pattern META_RANGE =
-        Pattern.compile("^Strecke:\\D*(\\d++.\\d*)-(\\d++.\\d*).*");
+        Pattern.compile("^Strecke:\\D*(\\d++.?\\d*)-(\\d++.?\\d*).*");
 
     public static final Pattern META_EVALUATION_BY =
         Pattern.compile("^Auswerter: (.*).*");


More information about the Dive4elements-commits mailing list