aboutsummaryrefslogtreecommitdiffstats
path: root/twittperator/pong.tw
diff options
context:
space:
mode:
authoranekos2011-06-22 18:21:10 +0900
committeranekos2011-06-22 18:21:10 +0900
commit3659e2ce3d368a08bfc497836a6d00a59df2edab (patch)
treeb7e91d5fa660e549f003029fa58060ffaa670f86 /twittperator/pong.tw
parent85445f7739ef54ee68f0b97ce2f6689319b5b557 (diff)
downloadvimperator-plugins-3659e2ce3d368a08bfc497836a6d00a59df2edab.tar.bz2
芋臭い RegExp の仕様変更に対応
Diffstat (limited to 'twittperator/pong.tw')
-rw-r--r--twittperator/pong.tw2
1 files changed, 1 insertions, 1 deletions
diff --git a/twittperator/pong.tw b/twittperator/pong.tw
index dae2e15..9f3f381 100644
--- a/twittperator/pong.tw
+++ b/twittperator/pong.tw
@@ -12,7 +12,7 @@
plugins.twittperator.ChirpUserStream.addListener(
function onMsg (msg, raw) {
function negi (pattern, reply) {
- if (RegExp('^\\s*@' + screenName + '\\s+' + pattern + '\s*$')(msg.text.trim())) {
+ if (RegExp('^\\s*@' + screenName + '\\s+' + pattern + '\s*$').test(msg.text.trim())) {
plugins.twittperator.Twitter.say('@' + msg.user.screen_name + ' ' + reply, msg.id_str);
return true;
}