mirror of
https://github.com/StrawberryMaster/wayback-machine-downloader.git
synced 2025-12-17 17:56:44 +00:00
Update way to convert string to regex
This commit is contained in:
parent
a01a0b73e7
commit
1a3ae8b931
@ -13,7 +13,7 @@ class WaybackMachineDownloader
|
|||||||
def initialize params
|
def initialize params
|
||||||
@base_url = params[:base_url]
|
@base_url = params[:base_url]
|
||||||
@timestamp = params[:timestamp].to_i
|
@timestamp = params[:timestamp].to_i
|
||||||
@only_filter = params[:accept_regex].to_regex
|
@only_filter = Regexp.new params[:only_filter]
|
||||||
end
|
end
|
||||||
|
|
||||||
def backup_name
|
def backup_name
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user