From: Russ Cox Date: Sun, 12 Sep 2010 03:42:29 +0000 (-0400) Subject: codereview: convert email address from Rietveld to lower case X-Git-Tag: weekly.2010-09-15~38 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b2a65588110c1161f0061047af4d08b662eb7dae;p=gostls13.git codereview: convert email address from Rietveld to lower case before looking for it in the CONTRIBUTORS file R=r CC=golang-dev https://golang.org/cl/1883049 --- diff --git a/lib/codereview/codereview.py b/lib/codereview/codereview.py index ba1a6fb108..d87a7b3f21 100644 --- a/lib/codereview/codereview.py +++ b/lib/codereview/codereview.py @@ -1102,9 +1102,10 @@ def CheckContributor(ui, repo, user=None): return userline def FindContributor(ui, repo, user, warn=True): + user = user.lower() m = re.match(r".*<(.*)>", user) if m: - user = m.group(1).lower() + user = m.group(1) if user not in contributors: if warn: