Skip to content

Commit fb831ff

Browse files
author
Alexey Shevchenko
committed
Handle uppercase user input as lower-case
Closes #29
1 parent aa4c850 commit fb831ff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

autoload/pymatcher.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ def CtrlPPyMatch():
2828

2929
# Append the last character in the string to the regex
3030
regex += escaped[-1]
31+
# because this IGNORECASE flag is extremely expensive we are converting everything to lower case
32+
# see https://github.com/FelikZ/ctrlp-py-matcher/issues/29
33+
regex = regex.lower()
3134

3235
res = []
3336
prog = re.compile(regex)

0 commit comments

Comments
 (0)