1
0
mirror of https://github.com/golang/go synced 2024-11-21 14:24:44 -07:00

codereview: convert email address from Rietveld to lower case

before looking for it in the CONTRIBUTORS file

R=r
CC=golang-dev
https://golang.org/cl/1883049
This commit is contained in:
Russ Cox 2010-09-11 23:42:29 -04:00
parent 323a116fd0
commit b2a6558811

View File

@ -1102,9 +1102,10 @@ def CheckContributor(ui, repo, user=None):
return userline
def FindContributor(ui, repo, user, warn=True):
user = user.lower()
m = re.match(r".*<(.*)>", user)
if m:
user = m.group(1).lower()
user = m.group(1)
if user not in contributors:
if warn: