Skip to content

Commit f4426b9

Browse files
authored
Merge pull request #4 from pythonpune/workaround_(
work around for trailing (
2 parents 0960c24 + 8745fea commit f4426b9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

linkstatus/parser.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ def parse_line(line):
2222
links = re.findall(REGULAR_EXP, html_format)
2323

2424
# TODO: Improve regex to remove this workaround for trailing </p> or </li>
25-
links = [l.replace("</p>", "").replace("</li>", "").replace("</a>", "") for l in links]
25+
links = [
26+
l.replace("</p>", "").replace("</li>", "").replace("</a>", "").replace(")", "")
27+
for l in links
28+
]
2629
return links
2730

2831

0 commit comments

Comments
 (0)