aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--twitter.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/twitter.js b/twitter.js
index e47d027..a0f17af 100644
--- a/twitter.js
+++ b/twitter.js
@@ -94,8 +94,8 @@
arg = arg.replace(/%URL%/g, liberator.buffer.URL)
.replace(/%TITLE%/g, liberator.buffer.title);
- if (special && arg.match(/^\?.+/))
- showTwitterSearchResult(arg)
+ if (special && arg.match(/^\?\s*(.*)/))
+ showTwitterSearchResult(RegExp.$1)
else
if (special || arg.length == 0)
showFollowersStatus(username, password, arg)