[Lada-commits] [PATCH 1 of 2] Accept values for 'umweltbereich' with length of 1 - 3 characters

Wald Commits scm-commit at wald.intevation.org
Thu Apr 6 10:12:06 CEST 2017


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1491466127 -7200
# Node ID b9eb9229df21615278f9e84434d18dc30b042ee5
# Parent  739ad8e78fcae07e67a79f64c1086973f48ac24c
Accept values for 'umweltbereich' with length of 1 - 3 characters.

diff -r 739ad8e78fca -r b9eb9229df21 src/main/java/de/intevation/lada/importer/laf/LafObjectListener.java
--- a/src/main/java/de/intevation/lada/importer/laf/LafObjectListener.java	Wed Apr 05 16:15:47 2017 +0200
+++ b/src/main/java/de/intevation/lada/importer/laf/LafObjectListener.java	Thu Apr 06 10:08:47 2017 +0200
@@ -1086,7 +1086,7 @@
         }
         String value = ctx.getChild(1).toString();
         value = value.replaceAll("\"", "");
-        if (!value.matches(LafDataTypes.SC3)) {
+        if (!value.matches(LafDataTypes.C3)) {
             ReportItem err = new ReportItem();
             err.setKey(ctx.getChild(0).toString());
             err.setValue(value);


More information about the Lada-commits mailing list