Reduce the number of "funky email" gripes
Addresses of the form "user at host.wherever" can be trivially repaired, so let's do so. A couple of other minor tweaks are included here as well; nothing which changes behavior.
This commit is contained in:
@@ -192,7 +192,8 @@ def AddEmailEmployerMapping (email, employer, end = nextyear):
|
|||||||
EmailToEmployer[email] = [(end, empl)]
|
EmailToEmployer[email] = [(end, empl)]
|
||||||
|
|
||||||
def MapToEmployer (email, unknown = 0):
|
def MapToEmployer (email, unknown = 0):
|
||||||
email = email.lower ()
|
# Somebody sometimes does s/@/ at /; let's fix it.
|
||||||
|
email = email.lower ().replace (' at ', '@')
|
||||||
try:
|
try:
|
||||||
return EmailToEmployer[email]
|
return EmailToEmployer[email]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
|||||||
4
gitdm
4
gitdm
@@ -4,8 +4,8 @@
|
|||||||
#
|
#
|
||||||
# This code is part of the LWN git data miner.
|
# This code is part of the LWN git data miner.
|
||||||
#
|
#
|
||||||
# Copyright 2007-8 LWN.net
|
# Copyright 2007-9 LWN.net
|
||||||
# Copyright 2007-8 Jonathan Corbet <corbet@lwn.net>
|
# Copyright 2007-9 Jonathan Corbet <corbet@lwn.net>
|
||||||
#
|
#
|
||||||
# This file may be distributed under the terms of the GNU General
|
# This file may be distributed under the terms of the GNU General
|
||||||
# Public License, version 2.
|
# Public License, version 2.
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ Pcommit = re.compile (r'^commit ([0-9a-f ]+)$')
|
|||||||
Pauthor = re.compile (r'^Author:' + Pemail + '$')
|
Pauthor = re.compile (r'^Author:' + Pemail + '$')
|
||||||
Psob = re.compile (r'Signed-off-by:' + Pemail)
|
Psob = re.compile (r'Signed-off-by:' + Pemail)
|
||||||
Pmerge = re.compile (r'^Merge:.*$')
|
Pmerge = re.compile (r'^Merge:.*$')
|
||||||
Padd = re.compile (r'^\+[^\+].*$')
|
Padd = re.compile (r'^\+[^+].*$')
|
||||||
Prem = re.compile (r'^-[^-].*$')
|
Prem = re.compile (r'^-[^-].*$')
|
||||||
Pdate = re.compile (r'^(Commit)?Date:\s+(.*)$')
|
Pdate = re.compile (r'^(Commit)?Date:\s+(.*)$')
|
||||||
Pfilea = re.compile (r'^---\s+(.*)$')
|
Pfilea = re.compile (r'^---\s+(.*)$')
|
||||||
|
|||||||
Reference in New Issue
Block a user