1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-06-14 14:12:27 +00:00

Merge pull request #972 from gwilherm/master

Fix buggy links in sequence groups #970
This commit is contained in:
PlantUML 2022-03-28 19:38:33 +02:00 committed by GitHub
commit 06da54c220
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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