Skip to content

Commit 29cee8f

Browse files
authored
Use raw string to avoid regex warning (#1552)
Followup to #1550
1 parent c69d433 commit 29cee8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/update_bazel_workspace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def update_module_version(version):
6464
with open(BAZEL_MODULE_FILE, 'r') as f:
6565
content = f.read()
6666

67-
pattern = '(module\(\s*name = "emsdk",\s*version = )"\d+.\d+.\d+",\n\)'
67+
pattern = r'(module\(\s*name = "emsdk",\s*version = )"\d+.\d+.\d+",\n\)'
6868
# Verify that the pattern exists in the input since re.sub will
6969
# will succeed either way.
7070
assert re.search(pattern, content)

0 commit comments

Comments
 (0)