1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-06-01 08:00:48 +00:00

Merge pull request #864 from The-Lum/FixNwdiag

fix: nwdiag server or element name with special char ("-" or ".")
This commit is contained in:
PlantUML 2022-01-15 16:01:10 +01:00 committed by GitHub
commit af5fa2b117
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,7 @@ public class CommandElement extends SingleLineCommand2<NwDiagram> {
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());