mirror of
https://github.com/golang/go
synced 2024-11-21 18:54:43 -07:00
case insensitive matching in CONTRIBUTORS file
R=rsc https://golang.org/cl/157043
This commit is contained in:
parent
c51ee432d1
commit
c7ec6ef859
@ -957,7 +957,7 @@ def FindContributor(ui, repo, user, warn=True):
|
||||
match = re.match(r"(.*) <(.*)>", line)
|
||||
if not match:
|
||||
continue
|
||||
if line == user or match.group(2) == user:
|
||||
if line == user or match.group(2).lower() == user.lower():
|
||||
return match.group(2), line
|
||||
if warn:
|
||||
ui.warn("warning: cannot find %s in CONTRIBUTORS\n" % (user,))
|
||||
|
Loading…
Reference in New Issue
Block a user