Fix #313: check for expr/item as 'None' in regexp

This commit is contained in:
Arun Prakash Jana 2018-09-28 21:20:19 +05:30
parent 20c934c3f4
commit e688806624
No known key found for this signature in database
GPG Key ID: A75979F35C080412

View File

@ -3998,6 +3998,10 @@ def regexp(expr, item):
True if result of search is not None, returns None otherwise.
"""
if expr is None or item is None:
logdbg('expr: [%s], item: [%s]', expr, item)
return False
return re.search(expr, item, re.IGNORECASE) is not None