Skip to content

Commit

Permalink
sflib: Don't report links ending in #.
Browse files Browse the repository at this point in the history
  • Loading branch information
smicallef committed Apr 24, 2022
1 parent 044cebc commit 8ded7af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sflib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1917,7 +1917,7 @@ def parseLinks(self, url: str, data: str, domains: list) -> list:

# Don't include stuff likely part of some dynamically built incomplete
# URL found in Javascript code (character is part of some logic)
if link[len(link) - 1] == '.' or link[0] == '+' or 'javascript:' in linkl or '()' in link:
if link[len(link) - 1] in ['.', '#'] or link[0] == '+' or 'javascript:' in linkl or '()' in link:
self.debug('unlikely link: ' + link)
continue

Expand Down

0 comments on commit 8ded7af

Please sign in to comment.