Skip to content

Commit

Permalink
fix: Only emit values after trailing commas if it's not just blank #99
Browse files Browse the repository at this point in the history
  • Loading branch information
BlayTheNinth committed Oct 23, 2024
1 parent c0b5c2c commit 27a299c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ void next(NotomlStateMachine state, NotomlParseBuffer buffer, NotomlTokenConsume
state.transition(List);
} else {
String value = buffer.readUntil(",", "]").trim();
consumer.emitPropertyValue(value);
if (!value.isBlank()) {
consumer.emitPropertyValue(value);
}
state.transition(List);
}
}
Expand Down

0 comments on commit 27a299c

Please sign in to comment.