Skip to content

Commit eda6268

Browse files
committed
fixed findPlaceholderEndIndex to work with a custom suffix as well (SPR-7574)
1 parent 668207d commit eda6268

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

org.springframework.core/src/main/java/org/springframework/util/PropertyPlaceholderHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ private int findPlaceholderEndIndex(CharSequence buf, int startIndex) {
190190
if (StringUtils.substringMatch(buf, index, this.placeholderSuffix)) {
191191
if (withinNestedPlaceholder > 0) {
192192
withinNestedPlaceholder--;
193-
index = index + this.placeholderPrefix.length() - 1;
193+
index = index + this.placeholderSuffix.length();
194194
}
195195
else {
196196
return index;

0 commit comments

Comments
 (0)