From bbec8d3c6b533b532bfe1d65b20834490e69ecce Mon Sep 17 00:00:00 2001 From: The-Lum <86879521+The-Lum@users.noreply.github.com> Date: Sat, 15 Jan 2022 15:56:05 +0100 Subject: [PATCH] fix: nwdiag name with special char Fix: nwdiag server or element name with special char ("-" or ".") Here is the similar patch as: - #adc23450c82e822d6fe8836defa01277f7901f71 But for server or element, on the: `CommandElement.java` file. Regards. Fixes #827 --- src/net/sourceforge/plantuml/nwdiag/CommandElement.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/sourceforge/plantuml/nwdiag/CommandElement.java b/src/net/sourceforge/plantuml/nwdiag/CommandElement.java index 566a5c3e6..329c8edfa 100644 --- a/src/net/sourceforge/plantuml/nwdiag/CommandElement.java +++ b/src/net/sourceforge/plantuml/nwdiag/CommandElement.java @@ -52,7 +52,7 @@ public class CommandElement extends SingleLineCommand2 { static IRegex getRegexConcat() { return RegexConcat.build(CommandElement.class.getName(), RegexLeaf.start(), // RegexLeaf.spaceZeroOrMore(), // - new RegexLeaf("NAME", "([%pLN_]+)"), // + new RegexLeaf("NAME", "([-.%pLN_]+)"), // RegexLeaf.spaceZeroOrMore(), // new RegexLeaf("DEFINITION", "(\\[(.*)\\])?"), // new RegexLeaf(";?"), RegexLeaf.end());