1
0
mirror of https://github.com/golang/go synced 2024-11-25 04:07:55 -07:00

case insensitive matching in CONTRIBUTORS file

R=rsc
https://golang.org/cl/157043
This commit is contained in:
Rob Pike 2009-11-17 11:40:25 -08:00
parent c51ee432d1
commit c7ec6ef859

View File

@ -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,))