This commit is contained in:
Miroslav Stampar
2020-12-17 13:34:23 +01:00
parent d9e6e678e8
commit 85c6d0d5c1
3 changed files with 15 additions and 1 deletions

View File

@@ -1868,6 +1868,8 @@ def _cleanupOptions():
if conf.exclude:
regex = False
original = conf.exclude
if any(_ in conf.exclude for _ in ('+', '*')):
try:
re.compile(conf.exclude)
@@ -1882,6 +1884,12 @@ def _cleanupOptions():
else:
conf.exclude = re.sub(r"(\w+)\$", r"\g<1>\$", conf.exclude)
class _(six.text_type):
pass
conf.exclude = _(conf.exclude)
conf.exclude._original = original
if conf.binaryFields:
conf.binaryFields = conf.binaryFields.replace(" ", "")
conf.binaryFields = re.split(PARAMETER_SPLITTING_REGEX, conf.binaryFields)