Skip to content

Commit

Permalink
Add support for GraphViz 4
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudroques committed Jun 6, 2022
1 parent a595225 commit 26f5b7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public static int retrieveVersion(String s) {
if (s == null)
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);
if (m.find() == false)
return -1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public GraphvizVersionFinder(File dotExe) {

public GraphvizVersion getVersion() {
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 boolean find = m.find();
if (find == false) {
Expand Down

0 comments on commit 26f5b7f

Please sign in to comment.