From a38383b9e313390307956f90a3c943567fbf9725 Mon Sep 17 00:00:00 2001 From: Guillaume <1017720+gwilherm@users.noreply.github.com> Date: Sun, 27 Mar 2022 21:22:28 +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 b631dda56..859c29bda 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);