# HG changeset patch # User Mads Kiilerich # Date 2020-01-18 21:42:50 # Node ID 27d6f56ade84a9336feaf41b288e7d4faed73927 # Parent 8f51a05b9856ddd1f4a78136752f22ec0d2d4f19 scripts: lower case contributor emails to normalize them diff --git a/scripts/update-copyrights.py b/scripts/update-copyrights.py --- a/scripts/update-copyrights.py +++ b/scripts/update-copyrights.py @@ -100,6 +100,9 @@ def insert_entries( for year, name in all_entries: if name in no_entries or (name, year) in no_entries: continue + parts = name.split(' <', 1) + if len(parts) == 2: + name = parts[0] + ' <' + parts[1].lower() domain = name.split('@', 1)[-1].rstrip('>') if domain in domain_extra: name_years[domain_extra[domain]].add(year)