From 7ceb6f99ee7490cebc0e2641acfe453029875cc0 Mon Sep 17 00:00:00 2001 From: davsad Date: Tue, 19 Jan 2021 10:57:11 +0000 Subject: Fix onboarding artifact name error Allowing for @ in Yang files names e.g. samplefile@2021-01-19.yang Issue-ID: SDC-3414 Change-Id: I20b1f5fceeace24709799b3953d82238bc2b85df Signed-off-by: davsad --- catalog-be/src/main/java/org/openecomp/sdc/be/tosca/CsarUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'catalog-be/src/main') diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/tosca/CsarUtils.java b/catalog-be/src/main/java/org/openecomp/sdc/be/tosca/CsarUtils.java index 123e1b18ad..764213209b 100644 --- a/catalog-be/src/main/java/org/openecomp/sdc/be/tosca/CsarUtils.java +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/tosca/CsarUtils.java @@ -153,7 +153,7 @@ public class CsarUtils { public static final String ARTIFACTS = "Artifacts"; private static final String DEFINITION = "Definitions"; private static final String DEL_PATTERN = "([/\\\\]+)"; - private static final String WORD_PATTERN = "\\w\\_\\-\\.\\s]+)"; + private static final String WORD_PATTERN = "\\w\\_\\@\\-\\.\\s]+)"; public static final String VALID_ENGLISH_ARTIFACT_NAME = "([" + WORD_PATTERN; private static final String VALID_ENGLISH_ARTIFACT_NAME_WITH_DIGITS = "([\\d" + WORD_PATTERN; private static final String ARTIFACT_NAME_UNIQUE_ID = "ArtifactName {}, unique ID {}"; -- cgit 1.2.3-korg