From 4f7c2654b670f4c3178f5985fe1a952d9e91d941 Mon Sep 17 00:00:00 2001 From: Paul Gessinger Date: Tue, 12 Jul 2022 17:36:27 +0200 Subject: [PATCH] ci: License checker script reports incorrect diff (#1321) Caused by an outdated regex that cleans the year incorrectly. --- CI/check_license.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CI/check_license.py b/CI/check_license.py index 5f0e94d0e0a..59943e11736 100755 --- a/CI/check_license.py +++ b/CI/check_license.py @@ -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"^(?P20\d{2}|(?P20\d{2})-(?P20\d{2}))$") extract_re = re.compile(r"(20\d{2})-?(20\d{2})?")