Skip to content
Permalink
Browse files
re.search anywhere match instead of re.match(abs_path)
  • Loading branch information
da2x committed May 4, 2015
1 parent b4668eb commit 0c1b0a27949aa56205e1ff30f669137094b00262
Showing with 2 additions and 1 deletion.
  1. +1 −0 CHANGES.txt
  2. +1 −1 nikola/plugins/command/check.py
@@ -4,6 +4,7 @@ New in master
Features
--------

* LINK_CHECK_WHITELIST now works with output relative and full fs paths
* Four new filters: html_tidy_nowrap, html_tidy_wrap, html_tidy_wrap_attr,
and html_tidy_mini for prettification and minification. Requires tidy5.
* Multilingual sitemaps (Issue #1610)
@@ -217,7 +217,7 @@ def analyze(self, task, find_sources=False):
fs_rel_path = fs_relpath_from_url_path(url_rel_path)
target_filename = os.path.join(self.site.config['OUTPUT_FOLDER'], fs_rel_path)

if any(re.match(x, target_filename) for x in self.whitelist):
if any(re.search(x, target_filename) for x in self.whitelist):
continue
elif target_filename not in self.existing_targets:
if os.path.exists(target_filename):

0 comments on commit 0c1b0a2

Please sign in to comment.