From 3462456666144a08ef16ae02390c4a5b6512a8f2 Mon Sep 17 00:00:00 2001 From: eukub Date: Wed, 13 Dec 2023 21:01:17 +0300 Subject: [PATCH] change regular expression --- devscripts/gh-pages/update-copyright.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)