1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-11-25 22:37:33 +00:00

Fix buggy links in sequence groups #970

This commit is contained in:
Guillaume 2022-03-27 21:07:34 +02:00
parent d6afa3fb5a
commit fb2296510c

View File

@ -93,7 +93,7 @@ public class CommandGrouping extends SingleLineCommand2<SequenceDiagram> {
if (StringUtils.isEmpty(comment)) {
comment = "group";
} else {
final Pattern p = Pattern.compile("^(.*?)\\[(.*)\\]$");
final Pattern p = Pattern.compile("^(.*(?:\\[\\[.*\\]\\]).*?|.*?)\\[(.*)\\]$");
final Matcher m = p.matcher(comment);
if (m.find()) {
type = m.group(1);