basic --search now works with MS Access

This commit is contained in:
Miroslav Stampar
2010-12-26 23:50:16 +00:00
parent f2373121d0
commit 89c2640d23
3 changed files with 64 additions and 6 deletions

View File

@@ -1877,3 +1877,18 @@ def getInjectionTests():
and test.details.dbms == dbms else True)
return retVal
def filterListValue(value, regex):
"""
Returns list with items that have parts
satisfying given regular expression
"""
if regex:
retVal = []
filter = getCompiledRegex(regex, re.I)
for word in value:
if filter.search(word):
retVal.append(word)
return retVal
else:
return value