aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tasks.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tasks.py b/tasks.py
index 5db7a617..dba760ca 100644
--- a/tasks.py
+++ b/tasks.py
@@ -25,7 +25,8 @@ def update_version(filename, identifier, version):
contents = re.sub(
r"^{} = .*?$".format(identifier),
'{} = "{}"'.format(identifier, version),
- contents
+ contents,
+ flags=re.MULTILINE
)
with open(path, "w") as f:
f.write(contents)