diff --git a/services/project_service/src/java/main/com/topcoder/service/project/impl/ProjectServiceBean.java b/services/project_service/src/java/main/com/topcoder/service/project/impl/ProjectServiceBean.java index e82233f79..c28ec8cc6 100644 --- a/services/project_service/src/java/main/com/topcoder/service/project/impl/ProjectServiceBean.java +++ b/services/project_service/src/java/main/com/topcoder/service/project/impl/ProjectServiceBean.java @@ -1996,8 +1996,6 @@ private void checkProjectData(ProjectData projectData, boolean isCreate) throws throw logException(new IllegalArgumentFault("The name attribute of the project data can not be null.")); } else if (name.trim().length() == 0) { throw logException(new IllegalArgumentFault("The name attribute of the project data can not be empty.")); - } else if (!Pattern.matches(NAME_PATTERN, name)) { - throw logException(new IllegalArgumentFault("The name attribute of the project data is not following pattern as - " + NAME_PATTERN)); } String description = projectData.getDescription(); @@ -2005,8 +2003,6 @@ private void checkProjectData(ProjectData projectData, boolean isCreate) throws throw logException(new IllegalArgumentFault("The description attribute of the project data can not be null.")); } else if (description.trim().length() == 0) { throw logException(new IllegalArgumentFault("The description attribute of the project data can not be empty.")); - } else if (!Pattern.matches(NAME_PATTERN, description)) { - throw logException(new IllegalArgumentFault("The description attribute of the project data is not following pattern as - " + NAME_PATTERN)); } //added in version 2.2 diff --git a/src/web/scripts/common.js b/src/web/scripts/common.js index 93ae9321e..8c5247d83 100644 --- a/src/web/scripts/common.js +++ b/src/web/scripts/common.js @@ -130,9 +130,6 @@ function limitContestProjectNameChars(maxChars) { var textArea = $(this); var content = textArea.val(); var invalid = false; - if (content.search(invalidCharsRegExp, '') > -1) { - invalid = true; - } if (content.length <= maxChars && !invalid) { ori = content; }