aboutsummaryrefslogtreecommitdiffstats
path: root/twitter.js
diff options
context:
space:
mode:
authormattn2008-04-10 05:14:07 +0000
committermattn2008-04-10 05:14:07 +0000
commit241885a24f274b41760263a975d100be9e45b2f7 (patch)
treeb104362daf7f1863e63f1bdeb4f5449d83445ab7 /twitter.js
parentdb262df7eb5c9780688781bdaad996fbb54bef27 (diff)
downloadvimperator-plugins-241885a24f274b41760263a975d100be9e45b2f7.tar.bz2
lang/javascript/vimperator-plugins/trunk/twitter.js:
* ステータスが複数行で表示されてしまうので行末から続く空文字をカット git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@9244 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'twitter.js')
-rw-r--r--twitter.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/twitter.js b/twitter.js
index 64a972e..ba4cec1 100644
--- a/twitter.js
+++ b/twitter.js
@@ -42,7 +42,8 @@
border="0"/>
<strong>{stat.user.name}</strong>
: {stat.text}<br/>
- </>.toSource();
+ </>.toSource()
+ .replace(/(?:\r?\n|\r)\s*/g, '');
});
liberator.log(html);
liberator.echo(html, true);