From 8745feaf572f2d06c64a90a4c7b7c3a1c8975078 Mon Sep 17 00:00:00 2001 From: Nikhil Dhandre Date: Sat, 23 Nov 2019 21:02:46 +0530 Subject: [PATCH] work around for trailing ( --- linkstatus/parser.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/linkstatus/parser.py b/linkstatus/parser.py index f907c93..c4534c8 100644 --- a/linkstatus/parser.py +++ b/linkstatus/parser.py @@ -22,7 +22,10 @@ def parse_line(line): links = re.findall(REGULAR_EXP, html_format) # TODO: Improve regex to remove this workaround for trailing

or - links = [l.replace("

", "").replace("", "").replace("", "") for l in links] + links = [ + l.replace("

", "").replace("", "").replace("", "").replace(")", "") + for l in links + ] return links