From 99c9c6759d0d5017c730c137234fbedd674082d0 Mon Sep 17 00:00:00 2001 From: anekos Date: Thu, 6 May 2010 12:57:22 +0000 Subject: 改行などを除去するように git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37400 d0d07461-0603-4401-acd4-de1884942a52 --- bitly.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bitly.js') 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 = bit.ly Get short alias by bit.ly and j.mp bit.ly や j.mp で短縮URLを得る - 2.0.0 + 2.0.1 anekos new BSD License (Please read the source code comments of this plugin) 修正BSDライセンス (ソースコードのコメントを参照してください) @@ -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(); -- cgit v1.2.3