From ec73a69c7f87aa63564978b6a0579b589ccc429a Mon Sep 17 00:00:00 2001 From: ferbas Date: Tue, 27 Oct 2009 11:04:52 +0000 Subject: improved pattern for bku version parsing (to allow snapshot versions) git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@358 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../at/knowcenter/wag/egov/egiz/sig/connectors/BKUPostConnection.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/BKUPostConnection.java b/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/BKUPostConnection.java index a1ebe31..1bd26c2 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/BKUPostConnection.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/BKUPostConnection.java @@ -120,7 +120,8 @@ public abstract class BKUPostConnection { // dummy bku header starts with Apache Coyote... //Pattern pattern = Pattern.compile("^citizen-card-environment/(\\d+\\.\\d+) (.+)/(\\d+\\.\\d+\\.\\d+)$"); - Pattern pattern = Pattern.compile("^.*citizen-card-environment/(\\d+\\.\\d+) (.+)/(\\d+\\.\\d+\\.\\d+)$"); + //Pattern pattern = Pattern.compile("^.*citizen-card-environment/(\\d+\\.\\d+) (.+)/(\\d+\\.\\d+\\.\\d+)$"); + Pattern pattern = Pattern.compile("^.*citizen-card-environment/(\\d+\\.\\d+) (.+)/(\\d+\\.\\d+\\.\\d+)(.*)$"); Matcher m = pattern.matcher(header_value); m.matches(); -- cgit v1.2.3