aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v2/remote.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2010-05-26 19:16:02 -0400
committerRalph Amissah <ralph@amissah.com>2010-05-26 19:16:02 -0400
commit752cfd30e986d8a77bfcef51ee4a15ba3c044059 (patch)
tree648c5a2076a0c9eaea66d21e0ab2511490be2347 /lib/sisu/v2/remote.rb
parentdal syntax, doc_str, http: matches to include https: (diff)
general extension of regex matches for http: to include https:
Diffstat (limited to 'lib/sisu/v2/remote.rb')
-rw-r--r--lib/sisu/v2/remote.rb4
1 files changed, 2 insertions, 2 deletions
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