[Dive4elements-commits] [PATCH] Flow Velocity Model Parser: another fix of main value guessing

Wald Commits scm-commit at wald.intevation.org
Tue Jun 25 13:22:28 CEST 2013


# HG changeset patch
# User Tom Gottfried <tom.gottfried at intevation.de>
# Date 1372159345 -7200
# Branch double-precision
# Node ID 1bdfc099286e2fa6a8f703ea7ca2a981461d0c0c
# Parent  61e55f36e76494132cac2381a22d08d9b2e5df5d
Flow Velocity Model Parser: another fix of main value guessing

diff -r 61e55f36e764 -r 1bdfc099286e backend/src/main/java/org/dive4elements/river/importer/parsers/FlowVelocityModelParser.java
--- a/backend/src/main/java/org/dive4elements/river/importer/parsers/FlowVelocityModelParser.java	Tue Jun 25 10:57:08 2013 +0200
+++ b/backend/src/main/java/org/dive4elements/river/importer/parsers/FlowVelocityModelParser.java	Tue Jun 25 13:22:25 2013 +0200
@@ -40,7 +40,7 @@
         Pattern.compile("(.*) Q=(\\w*)m3/s");
 
     private static final Pattern META_MAINVALUE_A =
-        Pattern.compile("([a-zA-Z]+)+(\\d+)*\\S*");
+        Pattern.compile("([a-zA-Z]+)+(\\d+)*[\\w()]*");
 
     private static final Pattern META_MAINVALUE_B =
         Pattern.compile("(([a-zA-Z]+)+(\\d+)*)\\s*-\\s*(([a-zA-Z]+)+(\\d+)*\\S*)");


More information about the Dive4elements-commits mailing list