Skip to content

Commit 7825bd6

Browse files
#31 - changed "contains" with "startsWith" to avoid unwanted values
1 parent 57d665c commit 7825bd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/github/delirius325/jmeter/backendlistener/elasticsearch/ElasticSearchMetric.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ private void checkCustomVariables() {
178178

179179
for(int i=0; i < lines.length; i++) {
180180
String[] header = lines[i].split(":");
181-
if(header[0].contains("es-")) {
181+
if(header[0].startsWith("es-")) {
182182
this.json.put(header[0].replaceAll("es-", "").trim(), header[1].trim());
183183
}
184184
}

0 commit comments

Comments
 (0)