in crashclouseau/hgauthors.py [0:0]
def cmp_name_email1(n, e):
"""Compare name and email to try to find a correspondance between them"""
if e and len(n) == 2:
L = list(filter(None, map(to_ascii_form, n)))
if len(L) == 2:
if e.startswith(".".join(L)) or e.startswith(".".join(L[::-1])):
return True
if e.startswith(L[0][0] + L[1]) or e.startswith(L[1][0] + L[0]):
return True
return False