1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-11-05 21:17:52 +00:00

Merge pull request #1164 from chenrui333/fix-graphviz-version-check

fix: update graphviz version check pattern
This commit is contained in:
PlantUML 2022-10-24 14:43:38 +02:00 committed by GitHub
commit bb6a08f55c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -196,7 +196,7 @@ public class GraphvizUtils {
if (s == null)
return -1;
final Pattern p = Pattern.compile("\\s([23456])\\.(\\d\\d?)\\D");
final Pattern p = Pattern.compile("\\s(\\d)\\.(\\d\\d?)\\D");
final Matcher m = p.matcher(s);
if (m.find() == false)
return -1;

View File

@ -72,7 +72,7 @@ public class GraphvizVersionFinder {
public GraphvizVersion getVersion() {
final String dotVersion = dotVersion();
final Pattern p = Pattern.compile("([23456])\\.(\\d\\d?)");
final Pattern p = Pattern.compile("(\\d)\\.(\\d\\d?)");
final Matcher m = p.matcher(dotVersion);
final boolean find = m.find();
if (find == false) {