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);