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 <romain.chanoir@viacesi.fr>
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
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]