aboutsummaryrefslogtreecommitdiffstats
path: root/twittperator.js
diff options
context:
space:
mode:
Diffstat (limited to 'twittperator.js')
-rwxr-xr-xtwittperator.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/twittperator.js b/twittperator.js
index ab079e7..b624f21 100755
--- a/twittperator.js
+++ b/twittperator.js
@@ -1755,11 +1755,11 @@ let PLUGIN_INFO =
command: ["+"],
description: "Fav a tweet",
action: function(arg) {
- let m = arg.match(/^.*#(\d+)/);
+ let m = arg.match(/^\d+/);
if (m)
- Twitter.favorite(m[1]);
+ Twitter.favorite(m[0]);
},
- completer: Completers.name_id_text(rejectMine)
+ completer: Completers.id(rejectMine)
}),
SubCommand({
command: ["-"],