diff --git a/test/sanity/code-smell/no-tests-as-filters.py b/test/sanity/code-smell/no-tests-as-filters.py index 792dc988341..04f50fb88ce 100755 --- a/test/sanity/code-smell/no-tests-as-filters.py +++ b/test/sanity/code-smell/no-tests-as-filters.py @@ -45,7 +45,7 @@ TEST_MAP = { } -FILTER_RE = re.compile(r'((.+?)\s*(?P[\w .\'"]+)(\s*)\|(\s*)(?P\w+))') +FILTER_RE = re.compile(r'(?P[\w .\'"]+)(\s*)\|(\s*)(?P\w+)') def main():