mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-06-29 13:40:59 +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)
|
match = braces.findall(line)
|
||||||
if match:
|
if match:
|
||||||
for item in match:
|
for item in match:
|
||||||
|
# replace potential regex in filters
|
||||||
|
item = re.sub(r"\(.+\)", "(dummy)", line)
|
||||||
matches.append((i, item))
|
matches.append((i, item))
|
||||||
|
|
||||||
for i, line in matches:
|
for i, line in matches:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user