1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-06-07 10:50:53 +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:
The-Lum 2022-01-15 15:56:05 +01:00 committed by GitHub
parent e054f57d38
commit bbec8d3c6b
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());