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/composite.rb | 2 +- lib/sisu/v2/html_format.rb | 4 ++-- lib/sisu/v2/html_promo.rb | 10 +++++----- lib/sisu/v2/param.rb | 2 +- lib/sisu/v2/remote.rb | 4 ++-- lib/sisu/v2/shared_html_lite.rb | 2 +- lib/sisu/v2/sisupod_make.rb | 2 +- lib/sisu/v2/texpdf.rb | 2 +- lib/sisu/v2/xml_format.rb | 4 ++-- 9 files changed, 16 insertions(+), 16 deletions(-) diff --git a/lib/sisu/v2/composite.rb b/lib/sisu/v2/composite.rb index 44518957..4ff53498 100644 --- a/lib/sisu/v2/composite.rb +++ b/lib/sisu/v2/composite.rb @@ -179,7 +179,7 @@ module SiSU_Assemble if file[:images].length > 0 file[:images].flatten! file[:images].uniq! - file[:images].delete_if {|x| x =~/http:\/\// } + file[:images].delete_if {|x| x =~/https?:\/\// } end file end diff --git a/lib/sisu/v2/html_format.rb b/lib/sisu/v2/html_format.rb index 00706192..b3712690 100644 --- a/lib/sisu/v2/html_format.rb +++ b/lib/sisu/v2/html_format.rb @@ -408,7 +408,7 @@ WOK end end def links_guide_vertical_open #??? - url=((defined? @vz.url_hp) && @vz.url_hp =~/^http:\/\/\S+$/ ? @vz.url_hp : @vz.url_home) + url=((defined? @vz.url_hp) && @vz.url_hp =~/^https?:\/\/\S+$/ ? @vz.url_hp : @vz.url_home) %{