Update way to convert string to regex

This commit is contained in:
hartator 2015-11-18 18:10:20 -06:00
parent a01a0b73e7
commit 1a3ae8b931

View File

@ -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