Merge remote-tracking branch 'remotes/upstream/master' into feature/optimization

This commit is contained in:
isudox
2018-03-01 21:02:38 +08:00
+1 -1
View File
@@ -220,7 +220,7 @@ class BaseParser:
try:
href = link.attrs['href'].strip()
if href and not (href.startswith('#') and self.skip_anchors and href in ['javascript:;']):
if href and not (href.startswith('#') and self.skip_anchors) and not href.startswith('javascript:'):
yield href
except KeyError:
pass