bin/PastehubSync in pastehub-0.4.1 vs bin/PastehubSync in pastehub-0.4.2
- old
+ new
@@ -89,10 +89,15 @@
str = if config.notifyMessageMax < x.size
x[0...config.notifyMessageMax] + " ..."
else
x
end
- command = sprintf( "%s -title 'PasteHub' -message '\\%s' ", notifier_path, str )
+ url_option = ''
+ util = PasteHub::Util.new
+ if util.pulloutURL( str )
+ url_option = '-open \'' + util.pulloutURL( str ) + '\''
+ end
+ command = sprintf( "%s -title 'PasteHub' -message '\\%s' %s", notifier_path, str, url_option )
system( command )
}
else
nil
end