From 7d4f24877773ecfefb83c42def511dc2eb8c1f18 Mon Sep 17 00:00:00 2001 From: Fabio Fernandes Date: Sun, 14 Jul 2013 16:51:11 -0300 Subject: [PATCH] Fixed Regex. --- plugins/droplr/droplr.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/droplr/droplr.rb b/plugins/droplr/droplr.rb index 4af49906d..38751dfcb 100755 --- a/plugins/droplr/droplr.rb +++ b/plugins/droplr/droplr.rb @@ -18,7 +18,7 @@ if ARGV[0].nil? exit!(1) end -if ARGV[0][%r{^http?://|https://}i] +if ARGV[0][%r{^http[|s]://}i] `osascript -e 'tell app "Droplr" to shorten "#{ARGV[0]}"'` else `open -ga /Applications/Droplr.app "#{ARGV[0]}"`