diff --git a/src/main/java/nz/co/jammehcow/jenkinsdiscord/DynamicFieldContainer.java b/src/main/java/nz/co/jammehcow/jenkinsdiscord/DynamicFieldContainer.java index 51f7110..5bf5968 100644 --- a/src/main/java/nz/co/jammehcow/jenkinsdiscord/DynamicFieldContainer.java +++ b/src/main/java/nz/co/jammehcow/jenkinsdiscord/DynamicFieldContainer.java @@ -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*")) { String[] pair = s.split(":", 2); fieldContainer.addField(pair[0], pair[1]); }