We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a4ac1c7 + 0ac3c5b commit 4fa85d2Copy full SHA for 4fa85d2
readability/readability.py
@@ -77,7 +77,7 @@ def compile_pattern(elements):
77
elements = str_(elements, 'utf-8')
78
elements = elements.split(u',')
79
if isinstance(elements, (list, tuple)):
80
- return re.compile(u'|'.join([re.escape(x.strip().lower()) for x in elements]), re.U)
+ return re.compile(u'|'.join([re.escape(x.strip()) for x in elements]), re.U)
81
else:
82
raise Exception("Unknown type for the pattern: {}".format(type(elements)))
83
# assume string or string like object
0 commit comments