mirror of
https://github.com/golang/go
synced 2024-11-21 19:54:41 -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:
parent
323a116fd0
commit
b2a6558811
@ -1102,9 +1102,10 @@ def CheckContributor(ui, repo, user=None):
|
|||||||
return userline
|
return userline
|
||||||
|
|
||||||
def FindContributor(ui, repo, user, warn=True):
|
def FindContributor(ui, repo, user, warn=True):
|
||||||
|
user = user.lower()
|
||||||
m = re.match(r".*<(.*)>", user)
|
m = re.match(r".*<(.*)>", user)
|
||||||
if m:
|
if m:
|
||||||
user = m.group(1).lower()
|
user = m.group(1)
|
||||||
|
|
||||||
if user not in contributors:
|
if user not in contributors:
|
||||||
if warn:
|
if warn:
|
||||||
|
Loading…
Reference in New Issue
Block a user