Skip to content

Commit 999aa21

Browse files
AlfonsoCorradoStrawberryMaster
authored andcommitted
fix match filters
1 parent 82ff2de commit 999aa21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/wayback_machine_downloader.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def handle_reset
204204

205205
def match_only_filter file_url
206206
if @only_filter
207-
only_filter_regex = @only_filter.to_regex
207+
only_filter_regex = @only_filter.to_regex(detect: true)
208208
if only_filter_regex
209209
only_filter_regex =~ file_url
210210
else
@@ -217,7 +217,7 @@ def match_only_filter file_url
217217

218218
def match_exclude_filter file_url
219219
if @exclude_filter
220-
exclude_filter_regex = @exclude_filter.to_regex
220+
exclude_filter_regex = @exclude_filter.to_regex(detect: true)
221221
if exclude_filter_regex
222222
exclude_filter_regex =~ file_url
223223
else

0 commit comments

Comments
 (0)