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)