in crashclouseau/hgauthors.py [0:0]
def special2(author):
# we've something like toto foo, titi bar <toto@...>
toks = author.split(" <")
if len(toks) == 2:
email = toks[1][:-1] if toks[1].endswith(">") else toks[1]
if "@" in email:
before_at = email.split("@")[0]
authors = SPECIAL_PAT_2.split(toks[0])
for a in authors:
if cmp_name_email(a, before_at):
return (email, a, "")
return None