mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 01:02:08 +01:00
Use raw string for regex patterns in python scripts
Related issue: https://github.com/uBlockOrigin/uBlock-issues/issues/3229
This commit is contained in:
parent
4d8ee35ef7
commit
923452b788
2 changed files with 2 additions and 2 deletions
|
@ -23,7 +23,7 @@ with open(manifest_out_file) as f:
|
||||||
manifest_out['version'] = version
|
manifest_out['version'] = version
|
||||||
|
|
||||||
# Development build? If so, modify name accordingly.
|
# 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:
|
if match:
|
||||||
manifest_out['name'] += ' development build'
|
manifest_out['name'] += ' development build'
|
||||||
manifest_out['short_name'] += ' dev build'
|
manifest_out['short_name'] += ' dev build'
|
||||||
|
|
|
@ -21,7 +21,7 @@ with open(firefox_manifest_file) as f2:
|
||||||
firefox_manifest = json.load(f2)
|
firefox_manifest = json.load(f2)
|
||||||
|
|
||||||
if 'sidebar_action' in firefox_manifest:
|
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:
|
if not match:
|
||||||
# https://bugzilla.mozilla.org/show_bug.cgi?id=1459007
|
# https://bugzilla.mozilla.org/show_bug.cgi?id=1459007
|
||||||
# By design Firefox opens the sidebar with new installation of
|
# By design Firefox opens the sidebar with new installation of
|
||||||
|
|
Loading…
Reference in a new issue