From 4bf8783918c08dd3eaf86555960d4a98ac2b7c26 Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Mon, 20 Nov 2017 14:15:00 +0000 Subject: [PATCH] Fixed error message git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/statistical-algorithms-importer@158708 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../client/tools/input/ProjectInfoPanel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/client/tools/input/ProjectInfoPanel.java b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/client/tools/input/ProjectInfoPanel.java index cdd95de..ce94ffc 100644 --- a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/client/tools/input/ProjectInfoPanel.java +++ b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/client/tools/input/ProjectInfoPanel.java @@ -59,7 +59,7 @@ public class ProjectInfoPanel extends ContentPanel { algorithmName = new TextField(); algorithmName.setAllowBlank(false); algorithmName.addValidator( - new RegExValidator("^[a-zA-Z0-9_]*$", "Attention only characters a-z,A-Z,0-9 are allowed")); + new RegExValidator("^[a-zA-Z0-9_]*$", "Attention only characters a-z,A-Z,0-9 and _ are allowed")); algorithmName.addValidator(new RegExValidator("^((?!(TEST|test|Test)).)*$", "Attention the words that contain TEST are invalid names")); @@ -87,7 +87,7 @@ public class ProjectInfoPanel extends ContentPanel { algorithmCategory.setAllowBlank(false); algorithmCategory.setEmptyText("Enter description..."); algorithmCategory.addValidator( - new RegExValidator("^[a-zA-Z0-9_]*$", "Attention only characters a-z,A-Z,0-9 are allowed")); + new RegExValidator("^[a-zA-Z0-9_]*$", "Attention only characters a-z,A-Z,0-9 and _ are allowed")); algorithmCategory.addValidator(new RegExValidator("^((?!(TEST|test|Test)).)*$", "Attention the words that contain TEST are invalid names")); algorithmCategory.addValidator(new MaxLengthValidator(32));