Minor fix

This commit is contained in:
Miroslav Stampar 2014-09-01 15:48:00 +02:00
parent d5d01e91ad
commit 25c6fca20e

View File

@ -1501,8 +1501,8 @@ def _cleanupOptions():
conf.dbms = conf.dbms.capitalize() conf.dbms = conf.dbms.capitalize()
if conf.testFilter: if conf.testFilter:
if not any([char in conf.testFilter for char in ('.', ')', '(', ']', '[')]): conf.testFilter = conf.testFilter.strip('*+')
conf.testFilter = conf.testFilter.replace('*', '.*') conf.testFilter = re.sub(r"([^.])([*+])", "\g<1>.\g<2>", conf.testFilter)
if "timeSec" not in kb.explicitSettings: if "timeSec" not in kb.explicitSettings:
if conf.tor: if conf.tor: