Fix 'TOSCA-Meta-File-Version and CSAR-Version accept only following format X.Y'-bug 77/135977/2
authorvasraz <vasyl.razinkov@est.tech>
Mon, 18 Sep 2023 17:13:01 +0000 (18:13 +0100)
committerMichael Morris <michael.morris@est.tech>
Wed, 20 Sep 2023 09:00:32 +0000 (09:00 +0000)
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Change-Id: I7a92e898da8ac0fa97710b01cb62de8529f43cd8
Issue-ID: SDC-4626

catalog-be/src/main/java/org/openecomp/sdc/be/components/impl/CsarValidationUtils.java

index 539b6b8..0fcaf7a 100644 (file)
@@ -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