Skip to content

Commit

Permalink
Improve splitting dynamic fields
Browse files Browse the repository at this point in the history
  • Loading branch information
KocproZ committed Sep 3, 2024
1 parent 5c68f5d commit 69113dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static DynamicFieldContainer of(String fieldsString) {
DynamicFieldContainer fieldContainer = new DynamicFieldContainer();

try {
for (String s : fieldsString.split(", ")) {
for (String s : fieldsString.split(",\\s*")) {

Check warning on line 49 in src/main/java/nz/co/jammehcow/jenkinsdiscord/DynamicFieldContainer.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Not covered line

Line 49 is not covered by tests
String[] pair = s.split(":", 2);
fieldContainer.addField(pair[0], pair[1]);
}
Expand Down

0 comments on commit 69113dc

Please sign in to comment.