mirror of
https://github.com/octoleo/plantuml.git
synced 2024-11-22 13:05:09 +00:00
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
This commit is contained in:
parent
e054f57d38
commit
bbec8d3c6b
@ -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