aboutsummaryrefslogtreecommitdiffstats
path: root/twittperator.js
diff options
context:
space:
mode:
authoranekos2011-06-07 04:07:34 +0900
committeranekos2011-06-07 04:08:44 +0900
commit7eaf3037a993b72d95f630902a2c19d929ada602 (patch)
tree4433c9251d2289898ae7fa98453fb6128dac1764 /twittperator.js
parent9cfb5d9d53086142ff2d42ae710822f5f2310e5c (diff)
downloadvimperator-plugins-7eaf3037a993b72d95f630902a2c19d929ada602.tar.bz2
RegExp の関数的な呼び出しができなくなったので修正 for Firefox5
Diffstat (limited to 'twittperator.js')
-rw-r--r--twittperator.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/twittperator.js b/twittperator.js
index e09a273..fc439db 100644
--- a/twittperator.js
+++ b/twittperator.js
@@ -1273,7 +1273,7 @@ let PLUGIN_INFO =
}
for (let [n, v] in Iterator(options)) {
- if (/^on[A-Z]/(n) && (v instanceof Function))
+ if (/^on[A-Z]/.test(n) && (v instanceof Function))
this.events[n.toLowerCase()] = v;
}
@@ -1409,7 +1409,7 @@ let PLUGIN_INFO =
lines[0] = buf + lines[0];
for (let [, line] in Iterator(lines.slice(0, -1))) {
try {
- if (/^\s*\{/(line))
+ if (/^\s*\{/.test(line))
onMsg(Utils.fixStatusObject(JSON.parse(line)), line);
} catch (e) { liberator.log(e); }
}
@@ -1560,7 +1560,7 @@ let PLUGIN_INFO =
}
for (let [n, v] in Iterator(st)) {
- if (/(^|_)id$/(n))
+ if (/(^|_)id$/.test(n))
fixId(result, n);
}
@@ -1636,7 +1636,7 @@ let PLUGIN_INFO =
function loadPluginFromDir(checkGV) {
return function(dir) {
dir.readDirectory().forEach(function(file) {
- if (/\.tw$/(file.path) && (!checkGV || isEnabled(file)))
+ if (/\.tw$/.test(file.path) && (!checkGV || isEnabled(file)))
Twittperator.sourceScriptFile(file);
});
}
@@ -2004,7 +2004,7 @@ let PLUGIN_INFO =
"^" +
this.command.map(function(c)
let (r = util.escapeRegex(c))
- (/^\W$/(c) ? r : r + "( |$)")
+ (/^\W$/.test(c) ? r : r + "( |$)")
).join("|")
);
},
@@ -2069,7 +2069,7 @@ let PLUGIN_INFO =
description: "Open link",
action: function(arg) Twittperator.openLink(arg),
timelineCompleter: true,
- completer: Completers.text(function(s) /https?:\/\//(s.text))
+ completer: Completers.text(function(s) /https?:\/\//.test(s.text))
}),
SubCommand({
command: ["delete"],