changeset 8098:27d6f56ade84 stable

scripts: lower case contributor emails to normalize them
author Mads Kiilerich <mads@kiilerich.com>
date Sat, 18 Jan 2020 22:42:50 +0100
parents 8f51a05b9856
children 1b21e40aa982
files scripts/update-copyrights.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/update-copyrights.py	Sat Jan 18 21:17:31 2020 +0100
+++ b/scripts/update-copyrights.py	Sat Jan 18 22:42:50 2020 +0100
@@ -100,6 +100,9 @@
     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)