fix: replace potential regex syntax used in filters (#421)

This commit is contained in:
Robert Kaussow 2022-08-01 08:28:10 +02:00 committed by GitHub
parent e299833f13
commit 85e5c41b32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,6 +23,8 @@ class CheckFilterSeparation(StandardBase):
match = braces.findall(line)
if match:
for item in match:
# replace potential regex in filters
item = re.sub(r"\(.+\)", "(dummy)", line)
matches.append((i, item))
for i, line in matches: