From 4cce7cf22ca798943ed10ebc6c3eccd1fc7baf08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=A4rkl?= Date: Fri, 20 Dec 2019 23:05:43 +0100 Subject: [PATCH] Fix get_version.py script for more than 1 char (#1955) --- scripts/get_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/get_version.py b/scripts/get_version.py index 6ec7f82c..631411cd 100644 --- a/scripts/get_version.py +++ b/scripts/get_version.py @@ -9,7 +9,7 @@ with open(pro_file_path, "r") as f: pro_content = f.read() def version_var_re(name): - return "^[ \t]*{}[ \t]*=[ \t]*(\d)+[ \t]*$".format(name) + return "^[ \t]*{}[ \t]*=[ \t]*(\d+)[ \t]*$".format(name) m = re.search(version_var_re("CUTTER_VERSION_MAJOR"), pro_content, flags=re.MULTILINE) version_major = int(m.group(1)) if m is not None else 0