Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1996,17 +1996,13 @@ 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();
if (null == description) {
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
Expand Down
3 changes: 0 additions & 3 deletions src/web/scripts/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down