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:
parent
5cdd5c76e5
commit
02ce388a5a
@ -74,7 +74,7 @@ public class BodierMap implements Bodier {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static String getLinkedEntry(String s) {
|
public static String getLinkedEntry(String s) {
|
||||||
final Pattern p = Pattern.compile("(\\*[-_]+\\>)");
|
final Pattern p = Pattern.compile("(\\*-+_?\\>)");
|
||||||
final Matcher m = p.matcher(s);
|
final Matcher m = p.matcher(s);
|
||||||
if (m.find()) {
|
if (m.find()) {
|
||||||
return m.group(1);
|
return m.group(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user