From 04980c989a22d7a16bf1a5afc7908587f2266ee8 Mon Sep 17 00:00:00 2001 From: vasraz Date: Mon, 18 Sep 2023 18:13:01 +0100 Subject: Fix 'TOSCA-Meta-File-Version and CSAR-Version accept only following format X.Y'-bug Signed-off-by: Vasyl Razinkov Change-Id: I7a92e898da8ac0fa97710b01cb62de8529f43cd8 Issue-ID: SDC-4626 --- .../java/org/openecomp/sdc/be/components/impl/CsarValidationUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'catalog-be/src/main/java') diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/CsarValidationUtils.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/CsarValidationUtils.java index 539b6b8536..0fcaf7afe3 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/CsarValidationUtils.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/CsarValidationUtils.java @@ -67,7 +67,7 @@ public class CsarValidationUtils { private static final String FILE_NOT_FOUND_IN_CSAR_WITH_ID = " file not found in CSAR with id "; private static final String CSAR_STRUCTURE_IS_INVALID = "CSAR structure is invalid"; private static final String ENTRY_DEFINITIONS = "Entry-Definitions "; - private static final Pattern floatPattern = Pattern.compile("^\\d{1}[.]\\d{1}$"); + private static final Pattern floatPattern = Pattern.compile("^\\d+\\.\\d+$"); /** * Utility classes, which are collections of static members, are not meant to be instantiated -- cgit 1.2.3-korg