From 752cfd30e986d8a77bfcef51ee4a15ba3c044059 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Wed, 26 May 2010 19:16:02 -0400 Subject: general extension of regex matches for http: to include https: --- lib/sisu/v2/remote.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/sisu/v2/remote.rb') diff --git a/lib/sisu/v2/remote.rb b/lib/sisu/v2/remote.rb index 4efe1770..32bc336d 100644 --- a/lib/sisu/v2/remote.rb +++ b/lib/sisu/v2/remote.rb @@ -145,7 +145,7 @@ module SiSU_Remote and images.length > 1 images.flatten! images.uniq! - images.delete_if {|x| x =~/http:\/\// } + images.delete_if {|x| x =~/https?:\/\// } images.sort! @msg,@msgs='downloading images:', [ images.join(',') ] @tell.call.warn unless @opt.cmd =~/q/ @@ -181,7 +181,7 @@ module SiSU_Remote @requested_file=requested_file end def pod - re_p_div=/http:\/\/([^\/]+)(\/\S+)\/(sisupod(?:\.zip)?|\S+?(?:\.ss[mt]\.zip)?|[^\/]+?\.ssp)$/ + re_p_div=/https?:\/\/([^\/]+)(\/\S+)\/(sisupod(?:\.zip)?|\S+?(?:\.ss[mt]\.zip)?|[^\/]+?\.ssp)$/ re_p=/(sisupod(?:\.zip)?|\S+?\.ss[mt](?:\.zip)?|[^\/]+?\.ssp)$/ if @requested_file =~ re_p_div @site,@pth,@pod= re_p_div.match(@requested_file).captures -- cgit v1.2.3