Fixed feature

This commit is contained in:
Luca Frosini 2019-10-09 10:40:27 +02:00
parent 34c41b04df
commit 34af5db8b8
1 changed files with 3 additions and 3 deletions

View File

@ -184,7 +184,7 @@ public class CommonServiceUtils {
String finalTag = asList.get(i).toString().trim().replaceAll(Constants.REGEX_TAGS, String finalTag = asList.get(i).toString().trim().replaceAll(Constants.REGEX_TAGS,
""); "");
if(finalTag.length() > TAG_MAX_SIZE) { if(finalTag.length() > TAG_MAX_SIZE) {
finalTag.substring(0, TAG_MAX_SIZE-1); finalTag = finalTag.substring(0, TAG_MAX_SIZE-1);
} }
tags.add(finalTag); tags.add(finalTag);
} }
@ -194,7 +194,7 @@ public class CommonServiceUtils {
String finalTag = asList.get(i).toString().trim().replaceAll(Constants.REGEX_TAGS, String finalTag = asList.get(i).toString().trim().replaceAll(Constants.REGEX_TAGS,
""); "");
if(finalTag.length() > TAG_MAX_SIZE) { if(finalTag.length() > TAG_MAX_SIZE) {
finalTag.substring(0, TAG_MAX_SIZE-1); finalTag = finalTag.substring(0, TAG_MAX_SIZE-1);
} }
tags.add(finalTag); tags.add(finalTag);
} }
@ -205,7 +205,7 @@ public class CommonServiceUtils {
String finalTag = f.toString().trim().replaceAll(Constants.REGEX_TAGS, ""); String finalTag = f.toString().trim().replaceAll(Constants.REGEX_TAGS, "");
logger.debug(finalTag); logger.debug(finalTag);
if(finalTag.length() > TAG_MAX_SIZE) { if(finalTag.length() > TAG_MAX_SIZE) {
finalTag.substring(0, TAG_MAX_SIZE-1); finalTag = finalTag.substring(0, TAG_MAX_SIZE-1);
} }
tags.add(finalTag); tags.add(finalTag);
} }