From cbe84c240a5aae39a830ab66016256693bdd7bf1 Mon Sep 17 00:00:00 2001 From: Benjamin Davies Date: Wed, 20 Mar 2024 16:54:40 +1300 Subject: [PATCH] Fix attribute labels --- .../plantuml/cheneer/command/CommandCreateAttribute.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/sourceforge/plantuml/cheneer/command/CommandCreateAttribute.java b/src/net/sourceforge/plantuml/cheneer/command/CommandCreateAttribute.java index 027b23486..7d8d966d8 100644 --- a/src/net/sourceforge/plantuml/cheneer/command/CommandCreateAttribute.java +++ b/src/net/sourceforge/plantuml/cheneer/command/CommandCreateAttribute.java @@ -71,7 +71,7 @@ public class CommandCreateAttribute extends SingleLineCommand2 { new RegexLeaf("as"), // RegexLeaf.spaceOneOrMore() // )), // - new RegexLeaf("CODE", "([%pLN%s_.:<>]+)"), // + new RegexLeaf("CODE", "([%pLN%s_.:]+)"), // RegexLeaf.spaceZeroOrMore(), // new RegexLeaf("STEREO", "(<<.*>>)?"), // RegexLeaf.spaceZeroOrMore(), // @@ -93,7 +93,7 @@ public class CommandCreateAttribute extends SingleLineCommand2 { final Quark quark = diagram.quarkInContext(true, id); String displayText = arg.get("DISPLAY", 0); if (displayText == null) - displayText = quark.getName(); + displayText = idShort; final String stereo = arg.get("STEREO", 0); final boolean composite = arg.get("COMPOSITE", 0) != null;