From fb2296510c5bafc156be035ba6e1fed4d5e6e10c Mon Sep 17 00:00:00 2001 From: Guillaume <1017720+gwilherm@users.noreply.github.com> Date: Sun, 27 Mar 2022 21:07:34 +0200 Subject: [PATCH] Fix buggy links in sequence groups #970 --- .../plantuml/sequencediagram/command/CommandGrouping.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/sourceforge/plantuml/sequencediagram/command/CommandGrouping.java b/src/net/sourceforge/plantuml/sequencediagram/command/CommandGrouping.java index e9711cc43..b631dda56 100644 --- a/src/net/sourceforge/plantuml/sequencediagram/command/CommandGrouping.java +++ b/src/net/sourceforge/plantuml/sequencediagram/command/CommandGrouping.java @@ -93,7 +93,7 @@ public class CommandGrouping extends SingleLineCommand2 { 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);