Fixed Regex.

This commit is contained in:
Fabio Fernandes 2013-07-14 16:51:11 -03:00
commit 7d4f248777

View file

@ -18,7 +18,7 @@ if ARGV[0].nil?
exit!(1) exit!(1)
end end
if ARGV[0][%r{^http?://|https://}i] if ARGV[0][%r{^http[|s]://}i]
`osascript -e 'tell app "Droplr" to shorten "#{ARGV[0]}"'` `osascript -e 'tell app "Droplr" to shorten "#{ARGV[0]}"'`
else else
`open -ga /Applications/Droplr.app "#{ARGV[0]}"` `open -ga /Applications/Droplr.app "#{ARGV[0]}"`