mirror of
https://github.com/StrawberryMaster/wayback-machine-downloader.git
synced 2025-12-17 09:46:05 +00:00
fix match filters
This commit is contained in:
parent
82ff2de3dc
commit
999aa211ae
@ -204,7 +204,7 @@ class WaybackMachineDownloader
|
||||
|
||||
def match_only_filter file_url
|
||||
if @only_filter
|
||||
only_filter_regex = @only_filter.to_regex
|
||||
only_filter_regex = @only_filter.to_regex(detect: true)
|
||||
if only_filter_regex
|
||||
only_filter_regex =~ file_url
|
||||
else
|
||||
@ -217,7 +217,7 @@ class WaybackMachineDownloader
|
||||
|
||||
def match_exclude_filter file_url
|
||||
if @exclude_filter
|
||||
exclude_filter_regex = @exclude_filter.to_regex
|
||||
exclude_filter_regex = @exclude_filter.to_regex(detect: true)
|
||||
if exclude_filter_regex
|
||||
exclude_filter_regex =~ file_url
|
||||
else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user