aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v0/options.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v0/options.rb')
-rw-r--r--lib/sisu/v0/options.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sisu/v0/options.rb b/lib/sisu/v0/options.rb
index 1ca771ff..8b014c04 100644
--- a/lib/sisu/v0/options.rb
+++ b/lib/sisu/v0/options.rb
@@ -94,7 +94,7 @@ module SiSU_commandline
end
s << " #{y}" unless y.empty?
end
- s.strip!
+ s.strip! # String.strip is broken in ruby 1.9.0 (2007-09-10 patchlevel 0) [i486-linux], 2007-09-18:38/2
a=s.split(/\s+/)
a.each do |x|
if x =~/^-[a-z0-5]+/i or x =~/^--\S+/
@@ -103,7 +103,7 @@ module SiSU_commandline
if x =~/^--\S+/; m << x
end
elsif x =~ /(?:\.(?:[_-]?sst(?:\.xml)?|ssm|ssi|sx[sdn]\.xml|s[1-3]|kdi|ssp)|sisupod(?:\.zip)?)$/
- if x =~/^http:\/\/\S+/; f << x
+ if x =~/^(?:https?|file):\/\/\S+/; f << x
elsif FileTest.file?(x); f << x
else puts "file not found: #{x}"
end