Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fastst way to fix empty key value splitting for styled strings.

Signed-off-by: Sven Marquardt <dev@mail.smarquardt.space>
  • Loading branch information
MaSven committed Oct 10, 2022
1 parent 87223d3 commit a6ceda4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public String toString() {

public static class Span implements Comparable<Span> {
private static final MapSplitter ATTRIBUTES_SPLITTER =
Splitter.on(';').withKeyValueSeparator(Splitter.on('=').limit(2));
Splitter.on(';').omitEmptyStrings().withKeyValueSeparator(Splitter.on('=').limit(2));

private final String tag;
private final int firstChar;
Expand Down

0 comments on commit a6ceda4

Please sign in to comment.