Skip to content

Commit

Permalink
ci: License checker script reports incorrect diff (#1321)
Browse files Browse the repository at this point in the history
Caused by an outdated regex that cleans the year incorrectly.
  • Loading branch information
paulgessinger committed Jul 12, 2022
1 parent dfd644d commit 4f7c265
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CI/check_license.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def main():
)

ref = re.compile(reg, re.M)
clean_re = re.compile(r"(\(C\)) (.*) (Acts)", re.M)
clean_re = re.compile(r"(\(C\)) (.*) (CERN)", re.M)
year_re = re.compile(r"^(?P<year1>20\d{2}|(?P<year2>20\d{2})-(?P<year3>20\d{2}))$")
extract_re = re.compile(r"(20\d{2})-?(20\d{2})?")

Expand Down

0 comments on commit 4f7c265

Please sign in to comment.