1
0
mirror of https://github.com/wting/autojump synced 2024-09-28 14:00:46 +00:00
This commit is contained in:
William Ting 2014-02-24 07:54:47 -06:00
parent 255f548b4a
commit 9db8c4feb3

View File

@ -162,6 +162,7 @@ def detect_smartcase(needles):
def find_matches(entries, needles, check_entries=True): def find_matches(entries, needles, check_entries=True):
"""Return an iterator to matching entries.""" """Return an iterator to matching entries."""
# TODO(wting|2014-02-24): replace assertion with unit test
assert isinstance(needles, list), "Needles must be a list." assert isinstance(needles, list), "Needles must be a list."
ignore_case = detect_smartcase(needles) ignore_case = detect_smartcase(needles)