Skip to content

Commit b6cf8c4

Browse files
committed
fix whitelisted patterns bug
1 parent 1e35862 commit b6cf8c4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

urlchecker/core/check.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
Copyright (c) 2020 Ayoub Malek and Vanessa Sochat
44
5-
This source code is licensed under the terms of the MIT license.
5+
This source code is licensed under the terms of the MIT license.
66
For a copy, see <https://opensource.org/licenses/MIT>.
77
88
"""
@@ -96,7 +96,7 @@ def check_files(
9696
urls = fileproc.collect_links_from_file(file_name)
9797

9898
# eliminate white listed urls and white listed white listed patterns
99-
if white_listed_urls:
99+
if white_listed_urls or white_listed_patterns:
100100
urls = [
101101
url
102102
for url in urls

0 commit comments

Comments
 (0)