diff options
author | anekos | 2010-12-27 03:08:17 +0900 |
---|---|---|
committer | anekos | 2010-12-27 03:08:17 +0900 |
commit | ae10843ceddc8549dcddac3258742b5e72ba7a9d (patch) | |
tree | 7b01025e19c69f376ce49f5f1a15974bdbb70166 /twittperator.js | |
parent | cff31ef1d7e73eb5bf4faf8c86f33ed233cb42b4 (diff) | |
download | vimperator-plugins-ae10843ceddc8549dcddac3258742b5e72ba7a9d.tar.bz2 |
fav/unfavの引数形式を統一
Diffstat (limited to 'twittperator.js')
-rw-r--r-- | twittperator.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/twittperator.js b/twittperator.js index 99a40c2..0221115 100644 --- a/twittperator.js +++ b/twittperator.js @@ -58,9 +58,9 @@ let PLUGIN_INFO = Does official retweet. :tw[ittperator] {TweetText} RT @user#id: {refTweet} Does classic retweet. - :tw[ittperator]!+@user#id + :tw[ittperator]!+status_id Adds the tweet to your favorites. - :tw[ittperator]!-@user#id + :tw[ittperator]!-status_id Delete the tweet from your favorites. :tw[ittperator]!?{SearchText} Shows the result of searching {SearchText}. @@ -117,9 +117,9 @@ let PLUGIN_INFO = 公式RTになるはずです。 :tw[ittperator] {TweetText} RT @user#id: {refTweet} 非公式RTになるはずです。 - :tw[ittperator]!+@user#id + :tw[ittperator]!+status_id tweetをfavoriteします。 - :tw[ittperator]!-@user#id + :tw[ittperator]!-status_id tweetをunfavoriteします。 :tw[ittperator]!?{SearchText} {SearchText}の検索結果を表示します。 @@ -1944,12 +1944,12 @@ let PLUGIN_INFO = command: ["-"], description: "Unfav a tweet", action: function(arg) { - let m = arg.match(/^.*#(\d+)/); + let m = arg.match(/^\d+/); if (m) - Twitter.unfavorite(m[1]); + Twitter.favorite(m[0]); }, timelineCompleter: true, - completer: Completers.name_id_text(rejectMine) + completer: Completers.id(rejectMine) }), SubCommand({ command: ["@"], |