Skip to content

Commit 1f6606d

Browse files
committed
Fixed sonar errors
1 parent bb3aee2 commit 1f6606d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/src/main/java/io/kafbat/ui/service/metrics/scrape/prometheus/PrometheusTextFormatParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public class PrometheusTextFormatParser {
5252
private static final Pattern TYPE_PATTERN =
5353
Pattern.compile("^# TYPE ([a-zA-Z_:][a-zA-Z0-9_:]*) (counter|gauge|histogram|summary|untyped)");
5454
private static final Pattern LABEL_PATTERN =
55-
Pattern.compile("([a-zA-Z_:][a-zA-Z0-9_:]*)=\"((?:\\\\\"|\\\\\\\\|\\\\n|[^\"])*)\"");
55+
Pattern.compile("([a-zA-Z_:][a-zA-Z0-9_:]*)=\"((?>\\\\\"|\\\\\\\\|\\\\n|[^\"])*)\"");
5656
public static final String QUANTILE_LABEL = "quantile";
5757

5858
private record ParsedDataPoint(String name, Labels labels, double value, Long scrapedAt) {

0 commit comments

Comments
 (0)