Skip to content

Commit

Permalink
regex fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronkl committed Feb 16, 2016
1 parent 6a6d302 commit 046009f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyfanova/fanova.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def check_java_version():
if len(out) < 1:
print("Failed checking Java version. Make sure Java version 7 or greater is installed.")
return False
m = re.match('java version "\d+.(\d+)..*'.encode("utf-8"), out[0])
m = re.match('.*version "\d+.(\d+)..*'.encode("utf-8"), out[0])
if m is None or len(m.groups()) < 1:
print("Failed checking Java version. Make sure Java version 7 or greater is installed.")
return False
Expand Down

0 comments on commit 046009f

Please sign in to comment.