3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-22 11:07:51 +00:00

fix version parse

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2025-08-20 09:39:36 -07:00
parent 72655637de
commit 02f195a380

View file

@ -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 "?.?.?.?"