From: Rob Pike Date: Tue, 17 Nov 2009 19:40:25 +0000 (-0800) Subject: case insensitive matching in CONTRIBUTORS file X-Git-Tag: weekly.2009-11-17~12 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c7ec6ef8594f4b66a17e9306f8c92ec9544b3b5a;p=gostls13.git case insensitive matching in CONTRIBUTORS file R=rsc https://golang.org/cl/157043 --- diff --git a/lib/codereview/codereview.py b/lib/codereview/codereview.py index 152798501f..3376f07364 100644 --- a/lib/codereview/codereview.py +++ b/lib/codereview/codereview.py @@ -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,))