aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranekos2010-05-06 12:57:22 +0000
committeranekos2010-05-06 12:57:22 +0000
commit99c9c6759d0d5017c730c137234fbedd674082d0 (patch)
tree0a0802f6a1de2890d2a52c7813bb94140bf3c697
parent49d160c179c024f23402a943803d32691cf553a5 (diff)
downloadvimperator-plugins-99c9c6759d0d5017c730c137234fbedd674082d0.tar.bz2
改行などを除去するように
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37400 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r--bitly.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitly.js b/bitly.js
index 5d84906..3dd63f7 100644
--- a/bitly.js
+++ b/bitly.js
@@ -38,7 +38,7 @@ let PLUGIN_INFO =
<name>bit.ly</name>
<description>Get short alias by bit.ly and j.mp</description>
<description lang="ja">bit.ly や j.mp で短縮URLを得る</description>
- <version>2.0.0</version>
+ <version>2.0.1</version>
<author mail="anekos@snca.net" homepage="http://d.hatena.ne.jp/nokturnalmortum/">anekos</author>
<license>new BSD License (Please read the source code comments of this plugin)</license>
<license lang="ja">修正BSDライセンス (ソースコードのコメントを参照してください)</license>
@@ -115,7 +115,7 @@ let PLUGIN_INFO =
'format=txt';
req.open('GET', requestUri, callback);
req.send(null);
- return !callback && req.responseText;
+ return !callback && req.responseText.trim();
}
let auth = getAuth();