Skip to content

Commit

Permalink
Use raw string for regex patterns in python scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed May 5, 2024
1 parent 4d8ee35 commit 923452b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/make-chromium-meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
manifest_out['version'] = version

# Development build? If so, modify name accordingly.
match = re.search('^\d+\.\d+\.\d+\.\d+$', version)
match = re.search(r'^\d+\.\d+\.\d+\.\d+$', version)
if match:
manifest_out['name'] += ' development build'
manifest_out['short_name'] += ' dev build'
Expand Down
2 changes: 1 addition & 1 deletion tools/make-firefox-meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
firefox_manifest = json.load(f2)

if 'sidebar_action' in firefox_manifest:
match = re.search('^(\d+\.\d+\.\d+)(\.\d+)$', version)
match = re.search(r'^(\d+\.\d+\.\d+)(\.\d+)$', version)
if not match:
# https://bugzilla.mozilla.org/show_bug.cgi?id=1459007
# By design Firefox opens the sidebar with new installation of
Expand Down

0 comments on commit 923452b

Please sign in to comment.