]> Cypherpunks repositories - gostls13.git/commitdiff
case insensitive matching in CONTRIBUTORS file
authorRob Pike <r@golang.org>
Tue, 17 Nov 2009 19:40:25 +0000 (11:40 -0800)
committerRob Pike <r@golang.org>
Tue, 17 Nov 2009 19:40:25 +0000 (11:40 -0800)
R=rsc
https://golang.org/cl/157043

lib/codereview/codereview.py

index 152798501fd33168f5ad732439a9df7670762370..3376f0736401d286cf5f263318aedc626c9255b9 100644 (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,))