mirror of
https://github.com/octoleo/plantuml.git
synced 2024-11-22 21:15:09 +00:00
Add support for GraphViz 4
This commit is contained in:
parent
a5952259b7
commit
26f5b7f1fd
@ -195,7 +195,7 @@ public class GraphvizUtils {
|
|||||||
if (s == null)
|
if (s == null)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
final Pattern p = Pattern.compile("\\s([23])\\.(\\d\\d?)\\D");
|
final Pattern p = Pattern.compile("\\s([23456])\\.(\\d\\d?)\\D");
|
||||||
final Matcher m = p.matcher(s);
|
final Matcher m = p.matcher(s);
|
||||||
if (m.find() == false)
|
if (m.find() == false)
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -72,7 +72,7 @@ public class GraphvizVersionFinder {
|
|||||||
|
|
||||||
public GraphvizVersion getVersion() {
|
public GraphvizVersion getVersion() {
|
||||||
final String dotVersion = dotVersion();
|
final String dotVersion = dotVersion();
|
||||||
final Pattern p = Pattern.compile("([23])\\.(\\d\\d?)");
|
final Pattern p = Pattern.compile("([23456])\\.(\\d\\d?)");
|
||||||
final Matcher m = p.matcher(dotVersion);
|
final Matcher m = p.matcher(dotVersion);
|
||||||
final boolean find = m.find();
|
final boolean find = m.find();
|
||||||
if (find == false) {
|
if (find == false) {
|
||||||
|
Loading…
Reference in New Issue
Block a user