mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
Fixed Regex.
This commit is contained in:
parent
4f0134e955
commit
7d4f248777
1 changed files with 1 additions and 1 deletions
|
|
@ -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]}"`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue