From 9df7232615d8dffb814dfa7cbfd104816cb83a31 Mon Sep 17 00:00:00 2001 From: Francesco Mangiacrapa Date: Wed, 5 Dec 2018 11:11:46 +0000 Subject: [PATCH] =?UTF-8?q?added=20the=20=E2=80=93=20to=20regex=20for=20va?= =?UTF-8?q?lidating=20folder=20name=20updated=20pom=20version=20at=206.23.?= =?UTF-8?q?1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@174588 82a268e6-3cf1-43bd-a215-b396298e98cf --- pom.xml | 2 +- .../portlets/user/workspace/client/ConstantsExplorer.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 17cf58a..080ba1b 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ org.gcube.portlets.user workspace-tree-widget - 6.24.0-SNAPSHOT + 6.24.1-SNAPSHOT gCube Workspace Tree Widget gCube Workspace Tree Widget is a widget to navigate and interact with gCube Workspace diff --git a/src/main/java/org/gcube/portlets/user/workspace/client/ConstantsExplorer.java b/src/main/java/org/gcube/portlets/user/workspace/client/ConstantsExplorer.java index 3bc7496..7e4dbaa 100644 --- a/src/main/java/org/gcube/portlets/user/workspace/client/ConstantsExplorer.java +++ b/src/main/java/org/gcube/portlets/user/workspace/client/ConstantsExplorer.java @@ -116,8 +116,8 @@ public class ConstantsExplorer { public static final String FILEUPLOADHEADER = "File upload in: "; - public static final String REGEX_TO_WSITEM_NAME = "[^\\[\\]<>\\|?/*%$\\\\:]*$"; - public static final String REGEX_TO_WSFOLDER_NAME = "[^\\[\\]<>\\|?/*%$\\\\:]*$"; + public static final String REGEX_TO_WSITEM_NAME = "[^\\[\\]<>\\|?/*%$\\\\:–]*$"; + public static final String REGEX_TO_WSFOLDER_NAME = "[^\\[\\]<>\\|?/*%$\\\\:–]*$"; public static final String REGEX_WSITEM_NAME_ALERT_MSG = "Field name must not contain: <>[]:\\|?/*%$ or contains / or \\"; public static final String REGEX_WSFOLDER_NAME_ALERT_MSG = "Folder name must not contain: <>[]:\\|?/*%$ or contains / or \\";