mirror of
https://github.com/golang/go.git
synced 2025-11-06 11:40:59 +00:00
case insensitive matching in CONTRIBUTORS file
R=rsc https://golang.org/cl/157043
This commit is contained in:
parent
c51ee432d1
commit
c7ec6ef859
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue