Skip to content

Commit

Permalink
add trim for descriptionPropertyValue (#100)
Browse files Browse the repository at this point in the history
try to fix #81

for selectContent.jelly  <j:forEach var="value" items="${effectiveValue}"> this will be trim by jelly tag forEach.

for computeDefaultValue this will be trim by method computeDefaultValueMap

but descriptionPropertyValue was not trim.

Change-Id: Ic05be1679436d7c6c80c4d585a301acfbeaa5cc7

Co-authored-by: bright.ma <[email protected]>
  • Loading branch information
mamh2021 and bright.ma authored Aug 6, 2023
1 parent 72e4bad commit 2e02857
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ private Map<String, String> computeDescriptionPropertyValueMap(String effectiveV
String[] descriptionPropertyValues =
StringUtils.split(effectiveDescriptionPropertyValue, ',');
for (int i = 0; i < values.length && i < descriptionPropertyValues.length; i++) {
descriptionPropertyValueMap.put(values[i], descriptionPropertyValues[i]);
descriptionPropertyValueMap.put(StringUtils.trim(values[i]), StringUtils.trim(descriptionPropertyValues[i]));
}
}
}
Expand Down

0 comments on commit 2e02857

Please sign in to comment.