Skip to content
Permalink
Browse files

Don't test example addresses. (RFC 2606)

  • Loading branch information
da2x committed Sep 2, 2015
1 parent 7e94836 commit 4c09972b094c2031fb0484779b0d7643d9bf9b02
Showing with 3 additions and 1 deletion.
  1. +3 −1 nikola/plugins/command/check.py
@@ -236,7 +236,9 @@ def analyze(self, fname, find_sources=False, check_remote=False):
continue
target, _ = urldefrag(target)


if any([urlparse(target).netloc.endswith(_) for _ in ['example.com', 'example.net', 'example.org']]):
self.logger.info("Not testing example address \"{0}\".".format(target))
continue

# absolute URL to root-relative
if target.startswith(base_url.geturl()):

0 comments on commit 4c09972

Please sign in to comment.
You can’t perform that action at this time.