Skip to content
Snippets Groups Projects
Unverified Commit aa06231a authored by Max Adamo's avatar Max Adamo
Browse files

escape parenthesis

parent 9277ff11
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,7 @@ if __name__ == "__main__":
domains_joined = '\n - '.join(domains_modified)
txt_line_out = " domains:\n - " + domains_joined
elif "Expiry Date: " in txt_line:
txt_line_out = re.sub('.*Expiry Date: .*(', ' expiry_date: "', txt_line)
txt_line_out = re.sub('.*Expiry Date: .*\(', ' expiry_date: "', txt_line)
txt_line_out = txt_line_out.replace(')', '') + '"'
else:
txt_line_out = None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment