Skip to content

Commit

Permalink
Handle uppercase user input as lower-case
Browse files Browse the repository at this point in the history
Closes #29
  • Loading branch information
Alexey Shevchenko committed Jun 22, 2016
1 parent aa4c850 commit fb831ff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions autoload/pymatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fb831ff

Please sign in to comment.