1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-11-29 00:06:34 +00:00

Merge pull request #1307 from rohitsud/patch-1

Allow only one underscore when escaping -->
This commit is contained in:
PlantUML 2023-03-05 21:39:57 +01:00 committed by GitHub
commit a171a90403
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,7 +74,7 @@ public class BodierMap implements Bodier {
}
public static String getLinkedEntry(String s) {
final Pattern p = Pattern.compile("(\\*[-_]+\\>)");
final Pattern p = Pattern.compile("(\\*-+_?\\>)");
final Matcher m = p.matcher(s);
if (m.find()) {
return m.group(1);