From 5662c9013035ed07a8b549548d2d5c7ac51d1b44 Mon Sep 17 00:00:00 2001 From: anekos Date: Sat, 31 Jul 2010 05:12:42 +0000 Subject: special は古い git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@38065 d0d07461-0603-4401-acd4-de1884942a52 --- twittperator.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/twittperator.js b/twittperator.js index 3ed98ea..5a19106 100755 --- a/twittperator.js +++ b/twittperator.js @@ -1376,24 +1376,24 @@ function ReTweet(id) { // {{{ function setup() { // {{{ commands.addUserCommand(["tw[ittperator]"], "Twittperator command", function(arg) { - var special = arg.bang; + let bang = arg.bang; arg = arg.string.replace(/%URL%/g, liberator.modules.buffer.URL) .replace(/%TITLE%/g, liberator.modules.buffer.title); - if (special && arg.match(/^\?\s*(.*)/)) + if (bang && arg.match(/^\?\s*(.*)/)) showTwitterSearchResult(RegExp.$1); else - if (special && arg.match(/^\+.*#(\d+)/)) + if (bang && arg.match(/^\+.*#(\d+)/)) favTwitter(RegExp.$1); else - if (special && arg.match(/^-.*#(\d+)/)) + if (bang && arg.match(/^-.*#(\d+)/)) unfavTwitter(RegExp.$1); else - if (special && arg.match(/^@/)) + if (bang && arg.match(/^@/)) showTwitterMentions(); else - if (special || arg.length == 0) - showFollowersStatus(arg, special); + if (bang || arg.length == 0) + showFollowersStatus(arg, bang); else sayTwitter(arg); }, { -- cgit v1.2.3