From 015de0e6dbd0171acbc881427adf03695480254f Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 5 Jun 2015 17:51:33 +0200 Subject: [PATCH] misc_checks: Check spelling case-insensitively. --- scripts/misc_checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/misc_checks.py b/scripts/misc_checks.py index 4e2c185f5..36bc28079 100644 --- a/scripts/misc_checks.py +++ b/scripts/misc_checks.py @@ -87,7 +87,7 @@ def check_spelling(target): continue for line in f: for w in words: - if re.search(w, line) and fn not in seen[w]: + if re.search(w, line, re.I) and fn not in seen[w]: print("Found '{}' in {}!".format(w, fn)) seen[w].append(fn) ok = False