1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2024-11-28 10:24:20 +01:00

Fix unescaped regex warning in build script

This commit is contained in:
Nick Hastings 2023-11-13 19:55:09 -05:00
parent eb4fcf21ea
commit 9948ad3d03

View File

@ -51,7 +51,7 @@ def output_version_header():
with open(os.path.join(SourceFolder, 'product.version')) as fp:
contents = fp.read()
m = re.match('(\d+)\.(\d+)\.(\d+)-?(.*)', contents)
m = re.match(r'(\d+)\.(\d+)\.(\d+)-?(.*)', contents)
if m == None:
raise Exception('Could not detremine product version')
major, minor, release, tag = m.groups()