1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-12-22 10:59:01 +00:00

fix negative values causing syntax error in robust "has" list

https://forum.plantuml.net/18701/negative-values-causing-syntax-error-in-robust-has-list?show=18705
This commit is contained in:
Arnaud Roques 2024-02-27 19:42:44 +01:00
parent 6c945e2508
commit 2a49ef06da

View File

@ -59,8 +59,9 @@ public class CommandDefineStateShort extends SingleLineCommand2<TimingDiagram> {
RegexLeaf.spaceOneOrMore(), //
new RegexLeaf("has"), //
RegexLeaf.spaceOneOrMore(), //
new RegexLeaf("STATE", "([%pLN_.@]+)"), //
new RegexLeaf("STATES", "((,([%pLN_.@]+))*)"), RegexLeaf.end());
new RegexLeaf("STATE", "([-%pLN_.@]+)"), //
new RegexLeaf("STATES", "((,([-%pLN_.@]+))*)"), //
RegexLeaf.end());
}
@Override