diff --git a/devscripts/gh-pages/update-copyright.py b/devscripts/gh-pages/update-copyright.py index 444595c48..f40a16075 100755 --- a/devscripts/gh-pages/update-copyright.py +++ b/devscripts/gh-pages/update-copyright.py @@ -19,7 +19,7 @@ from youtube_dl import compat_str year = compat_str(datetime.datetime.now().year) for fn in glob.glob('*.html*'): content = read_file(fn) - newc = re.sub(r'(?PCopyright © 2011-)(?P[0-9]{4})', 'Copyright © 2011-' + year, content) + newc = re.sub(r'(?PCopyright © 2011-)(?P\d{4})', 'Copyright © 2011-' + year, content) if content != newc: tmpFn = fn + '.part' write_file(tmpFn, newc)