From b2a65588110c1161f0061047af4d08b662eb7dae Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Sat, 11 Sep 2010 23:42:29 -0400 Subject: [PATCH] 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 --- lib/codereview/codereview.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: