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:
commit
af5fa2b117
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue
Block a user