mirror of
https://github.com/octoleo/plantuml.git
synced 2025-01-30 18:49:26 +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…
x
Reference in New Issue
Block a user