mirror of
https://github.com/octoleo/plantuml.git
synced 2025-04-09 03:31:51 +00:00
Merge pull request #1684 from chenrui333/update-graphviz-version-detection
fix: update graphviz version check pattern
This commit is contained in:
commit
a65935cb09
@ -197,7 +197,7 @@ public class GraphvizUtils {
|
|||||||
if (s == null)
|
if (s == null)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
final Pattern p = Pattern.compile("\\s(\\d)\\.(\\d\\d?)\\D");
|
final Pattern p = Pattern.compile("\\s(\\d+)\\.(\\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;
|
||||||
|
@ -73,7 +73,7 @@ public class GraphvizVersionFinder {
|
|||||||
|
|
||||||
public GraphvizVersion getVersion() {
|
public GraphvizVersion getVersion() {
|
||||||
final String dotVersion = dotVersion();
|
final String dotVersion = dotVersion();
|
||||||
final Pattern p = Pattern.compile("(\\d)\\.(\\d\\d?)");
|
final Pattern p = Pattern.compile("(\\d+)\\.(\\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…
x
Reference in New Issue
Block a user