[Dive4elements-commits] [PATCH] BedHeightParser: allow white space in km-range

Wald Commits scm-commit at wald.intevation.org
Wed Mar 27 21:01:16 CET 2013


# HG changeset patch
# User Tom Gottfried <tom.gottfried at intevation.de>
# Date 1364414473 -3600
# Node ID 8f492672d1e54eca628cb196494b99541cd14281
# Parent  a5bb0a139f1908760736707793664965022fc45b
BedHeightParser: allow white space in km-range

diff -r a5bb0a139f19 -r 8f492672d1e5 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	Wed Mar 27 20:21:27 2013 +0100
+++ b/flys-backend/src/main/java/de/intevation/flys/importer/parsers/BedHeightParser.java	Wed Mar 27 21:01:13 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