From 85a1c69334e09953f7b4728a761fc7c389b4da5d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Wed, 21 Feb 2018 12:28:52 -0500 Subject: [PATCH] inkscape_tools: fix Inkscape version detection on Ubuntu MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The regex detecting the Inkscape version was too permissive and expected 3 numbers. This make it wrongly match to the revision string on Ubuntu where the version string has 2 numbers: Inkscape 0.91 r13725 Reported-by: Romain Chanoir Signed-off-by: Alexis Laferrière --- contrib/inkscape_tools/src/svg_to_png_and_nit.nit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/inkscape_tools/src/svg_to_png_and_nit.nit b/contrib/inkscape_tools/src/svg_to_png_and_nit.nit index f660a31..b8a3157 100644 --- a/contrib/inkscape_tools/src/svg_to_png_and_nit.nit +++ b/contrib/inkscape_tools/src/svg_to_png_and_nit.nit @@ -220,7 +220,7 @@ var p = new ProcessReader("inkscape", "--version") var version_string = p.read_all p.wait p.close -var version_re = "([0-9]+\).([0-9]+\).[0-9]+".to_re +var version_re = "([0-9]+)\\.([0-9]+)".to_re var match = version_string.search(version_re) assert match != null var major = match[1] -- 1.7.9.5