Skip to content

Commit f30dbb8

Browse files
authored
Merge pull request #9 from junaid7haque/caseSensitivityUpdate
Made it so the validator only accepts lowercase category names
2 parents 08acba1 + 49e5e7f commit f30dbb8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/reactome/server/tools/IconValidator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ private void validateXmlObj(File xmlFile, Icon icon) {
102102
System.out.println(countRef.incrementAndGet() + " / " + xmlNum + " xml files analysed (" + xmlFile.getName() + ")");
103103
List<String> categories = icon.getCategories();
104104
for (String category : categories) {
105-
if (!CATEGORIES.contains(category.toLowerCase())) {
105+
if (!CATEGORIES.contains(category())) {
106106
errorLogger.error("[" + category + "] at the element \"category\" is not in the list CATEGORIES in the " + xmlFile.getName() + ".");
107107
error.incrementAndGet();
108108
}

0 commit comments

Comments
 (0)