Skip to content

Commit

Permalink
re.search anywhere match instead of re.match(abs_path)
Browse files Browse the repository at this point in the history
  • Loading branch information
da2x committed May 4, 2015
1 parent b4668eb commit 0c1b0a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.txt
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion nikola/plugins/command/check.py
Expand Up @@ -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):
Expand Down

0 comments on commit 0c1b0a2

Please sign in to comment.