mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-06-18 08:10:58 +02:00
fix: replace potential regex syntax used in filters (#421)
This commit is contained in:
parent
e299833f13
commit
85e5c41b32
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user