1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-12-22 10:59:01 +00:00

Allow only one underscore when escaping -->

This improves https://github.com/plantuml/plantuml/pull/1303 by preventing expressions like `*--____>` from being allowed. Now only expressions like `*--_>` and `*-->` will be allowed in maps,
This commit is contained in:
rohitsud 2023-03-05 11:43:49 -08:00 committed by GitHub
parent 5cdd5c76e5
commit 02ce388a5a
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);