mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-09 17:10:58 +00:00
Only check anchors in HTML pages.
This commit is contained in:
parent
e5c2271533
commit
72b65d94df
1 changed files with 1 additions and 1 deletions
|
|
@ -629,7 +629,7 @@ class UrlBase (object):
|
|||
A warning is logged and True is returned if the anchor is not found.
|
||||
"""
|
||||
if not (self.anchor and self.aggregate.config["anchors"] and
|
||||
self.valid and self.is_parseable()):
|
||||
self.valid and self.is_html()):
|
||||
return
|
||||
log.debug(LOG_CHECK, "checking anchor %r in %s", self.anchor, self.anchors)
|
||||
if any(x for x in self.anchors if x[0] == self.anchor):
|
||||
|
|
|
|||
Loading…
Reference in a new issue