more tests cases regarding wild functionality
modified: README.rst modified: nested_lookup/nested_lookup.py modified: setup.py modified: test_nested_lookup.py
This commit is contained in:
parent
b6acaca980
commit
4b8eeaf969
4 changed files with 14 additions and 5 deletions
|
|
@ -15,7 +15,7 @@ def nested_lookup(key, document, wild=False, with_keys=False):
|
|||
|
||||
def _is_case_insensitive_substring(a, b):
|
||||
"""return True if `a` is a case insensitive substring of `b`, else False"""
|
||||
return isinstance(a, str) and isinstance(b, str) and a.lower() in b.lower()
|
||||
return str(a).lower() in str(b).lower()
|
||||
|
||||
|
||||
def _nested_lookup(key, document, wild=False, with_keys=False):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue