From 1944c826bca98b0b278f46e3a37a74388ffd596f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 3 Nov 2022 20:32:52 +0100 Subject: [PATCH] doc/conf.py: fix version regular expression Commit 44ef34db88818bbaf78bb617b024fc7eac9ca571 was broken. --- doc/conf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/conf.py b/doc/conf.py index 95474259e..248505869 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -40,7 +40,8 @@ author = 'Max Kellermann' # The short X.Y version. with open('../meson.build') as f: import re - version = re.match(r".*version:\s*'([^']+)'", f.readline()).group(1) + version = re.match(r"project\([^\)]*\bversion:\s*'([^']+)'", + f.read(4096)).group(1) # The full version, including alpha/beta/rc tags. #release = version + '~git'