Skip to content

Commit 79deed7

Browse files
author
Dave Syer
committed
Remove extra trailing '-' in metric name
1 parent 8fcf355 commit 79deed7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/MetricFilterAutoConfiguration.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ private String fixSpecialCharacters(String value) {
119119
result = result.replace("**", "-star-star-");
120120
result = result.replace("*", "-star-");
121121
result = result.replace("/-", "/");
122+
result = result.replace("-/", "/");
122123
if (result.endsWith("-")) {
123124
result = result.substring(0, result.length() - 1);
124125
}

0 commit comments

Comments
 (0)