From fb831ff903d5622b39f400fc8ba80f9bbd225307 Mon Sep 17 00:00:00 2001 From: Alexey Shevchenko Date: Wed, 22 Jun 2016 12:32:42 +0200 Subject: [PATCH] Handle uppercase user input as lower-case Closes #29 --- autoload/pymatcher.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/pymatcher.py b/autoload/pymatcher.py index c01fa8b..d89b720 100644 --- a/autoload/pymatcher.py +++ b/autoload/pymatcher.py @@ -28,6 +28,9 @@ def CtrlPPyMatch(): # Append the last character in the string to the regex regex += escaped[-1] + # because this IGNORECASE flag is extremely expensive we are converting everything to lower case + # see https://github.com/FelikZ/ctrlp-py-matcher/issues/29 + regex = regex.lower() res = [] prog = re.compile(regex)