From b0c30a7cc00cb31ec80d816ccef8dc31109eff1a Mon Sep 17 00:00:00 2001 From: Jonathan Shook Date: Thu, 4 Nov 2021 16:36:34 -0500 Subject: [PATCH] split description on periods or semicolons --- .../java/io/nosqlbench/engine/api/scenarios/WorkloadDesc.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine-api/src/main/java/io/nosqlbench/engine/api/scenarios/WorkloadDesc.java b/engine-api/src/main/java/io/nosqlbench/engine/api/scenarios/WorkloadDesc.java index 1fda202df..8f31a47df 100644 --- a/engine-api/src/main/java/io/nosqlbench/engine/api/scenarios/WorkloadDesc.java +++ b/engine-api/src/main/java/io/nosqlbench/engine/api/scenarios/WorkloadDesc.java @@ -64,7 +64,7 @@ public class WorkloadDesc implements Comparable { if (!description.isEmpty()) { // sb.append("# description:\n"); - String formattedDesc = "# "+ description.split("\n")[0]; + String formattedDesc = "# "+ description.split("[\n.;]")[0]; sb.append(formattedDesc).append("\n"); while (sb.toString().endsWith("\n\n")) { sb.setLength(sb.length() - 1);