mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-18 19:06:10 +00:00
Fix get_version.py script for more than 1 char (#1955)
This commit is contained in:
parent
c0d4fda0c7
commit
4cce7cf22c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user