nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
inkscape_tools: fix Inkscape version detection on Ubuntu
[nit.git]
/
contrib
/
inkscape_tools
/
src
/
svg_to_png_and_nit.nit
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
(file)
--- 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]