Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 22db525

Browse files
authored
Merge pull request #233 from skyhit/allow_any_characters_for_project_name_and_description
allow any characters
2 parents 9cae161 + fee8a09 commit 22db525

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

services/project_service/src/java/main/com/topcoder/service/project/impl/ProjectServiceBean.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1996,17 +1996,13 @@ private void checkProjectData(ProjectData projectData, boolean isCreate) throws
19961996
throw logException(new IllegalArgumentFault("The name attribute of the project data can not be null."));
19971997
} else if (name.trim().length() == 0) {
19981998
throw logException(new IllegalArgumentFault("The name attribute of the project data can not be empty."));
1999-
} else if (!Pattern.matches(NAME_PATTERN, name)) {
2000-
throw logException(new IllegalArgumentFault("The name attribute of the project data is not following pattern as - " + NAME_PATTERN));
20011999
}
20022000

20032001
String description = projectData.getDescription();
20042002
if (null == description) {
20052003
throw logException(new IllegalArgumentFault("The description attribute of the project data can not be null."));
20062004
} else if (description.trim().length() == 0) {
20072005
throw logException(new IllegalArgumentFault("The description attribute of the project data can not be empty."));
2008-
} else if (!Pattern.matches(NAME_PATTERN, description)) {
2009-
throw logException(new IllegalArgumentFault("The description attribute of the project data is not following pattern as - " + NAME_PATTERN));
20102006
}
20112007

20122008
//added in version 2.2

src/web/scripts/common.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,6 @@ function limitContestProjectNameChars(maxChars) {
130130
var textArea = $(this);
131131
var content = textArea.val();
132132
var invalid = false;
133-
if (content.search(invalidCharsRegExp, '') > -1) {
134-
invalid = true;
135-
}
136133
if (content.length <= maxChars && !invalid) {
137134
ori = content;
138135
}

0 commit comments

Comments
 (0)