We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44f51c1 commit 4ce6768Copy full SHA for 4ce6768
1 file changed
bin/check-copyright
@@ -188,6 +188,7 @@ write_cache = False
188
loginfo_format = r'^r[0-9]+ \| [^@]+@[^@]+ \| \d\d\d\d-\d\d-\d\d '
189
190
year = time.strftime('%Y')
191
+copyright_re = "(?i)"+opt_copyright.format(years=r"(\d+-)?\d+")
192
for path in files:
193
try:
194
if not os.path.exists(path):
@@ -200,8 +201,7 @@ for path in files:
200
201
date = initinfo[path]['date']
202
init = date[:4]
203
- copyright_re = "(?i)"+opt_copyright.format(years=r"(\d+-)?\d+")
204
- copyright_year_re = "(?i)"+opt_copyright.format(years=r"({init})?{year}")
+ copyright_year_re = "(?i)"+opt_copyright.format(years=r"({init}-)?{year}".format(init=init, year=year))
205
with open(path) as file:
206
207
chunk = file.read(4000)
0 commit comments