We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82ff2de commit 999aa21Copy full SHA for 999aa21
lib/wayback_machine_downloader.rb
@@ -204,7 +204,7 @@ def handle_reset
204
205
def match_only_filter file_url
206
if @only_filter
207
- only_filter_regex = @only_filter.to_regex
+ only_filter_regex = @only_filter.to_regex(detect: true)
208
if only_filter_regex
209
only_filter_regex =~ file_url
210
else
@@ -217,7 +217,7 @@ def match_only_filter file_url
217
218
def match_exclude_filter file_url
219
if @exclude_filter
220
- exclude_filter_regex = @exclude_filter.to_regex
+ exclude_filter_regex = @exclude_filter.to_regex(detect: true)
221
if exclude_filter_regex
222
exclude_filter_regex =~ file_url
223
0 commit comments