From 26f5b7f1fd5be26389b80b92de70b9f63659476d Mon Sep 17 00:00:00 2001 From: Arnaud Roques Date: Mon, 6 Jun 2022 12:35:27 +0200 Subject: [PATCH] Add support for GraphViz 4 --- src/net/sourceforge/plantuml/cucadiagram/dot/GraphvizUtils.java | 2 +- .../plantuml/cucadiagram/dot/GraphvizVersionFinder.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/sourceforge/plantuml/cucadiagram/dot/GraphvizUtils.java b/src/net/sourceforge/plantuml/cucadiagram/dot/GraphvizUtils.java index d5bc7d0e1..c320205fa 100644 --- a/src/net/sourceforge/plantuml/cucadiagram/dot/GraphvizUtils.java +++ b/src/net/sourceforge/plantuml/cucadiagram/dot/GraphvizUtils.java @@ -195,7 +195,7 @@ public class GraphvizUtils { 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; diff --git a/src/net/sourceforge/plantuml/cucadiagram/dot/GraphvizVersionFinder.java b/src/net/sourceforge/plantuml/cucadiagram/dot/GraphvizVersionFinder.java index d7884ce8a..2fb92e2bb 100644 --- a/src/net/sourceforge/plantuml/cucadiagram/dot/GraphvizVersionFinder.java +++ b/src/net/sourceforge/plantuml/cucadiagram/dot/GraphvizVersionFinder.java @@ -72,7 +72,7 @@ public class GraphvizVersionFinder { 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) {