diff --git a/search.py b/search.py index d26408a..6b43b70 100644 --- a/search.py +++ b/search.py @@ -150,6 +150,8 @@ def search( recurse=not local_only, yield_directories=True, ) + elif isinstance(text, (list, tuple)): + search_objects = text else: search_objects = text.splitlines()