mirror of
https://github.com/Z3Prover/z3
synced 2025-08-22 02:57:50 +00:00
fix version parse
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
72655637de
commit
02f195a380
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ def _z3_version():
|
|||
if os.path.exists(fn):
|
||||
with open(fn) as f:
|
||||
for line in f:
|
||||
n = re.match(r"(.*), (.*), (.*), (.*)", line)
|
||||
n = re.match(r"(.*)\.(.*)\.(.*)\.(.*)", line)
|
||||
if not n is None:
|
||||
return n.group(1) + '.' + n.group(2) + '.' + n.group(3) + '.' + n.group(4) + post
|
||||
return "?.?.?.?"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue