aboutsummaryrefslogtreecommitdiffstats
path: root/pluginManager.js
diff options
context:
space:
mode:
authoranekos2011-06-07 04:07:34 +0900
committeranekos2011-06-07 04:08:44 +0900
commit7eaf3037a993b72d95f630902a2c19d929ada602 (patch)
tree4433c9251d2289898ae7fa98453fb6128dac1764 /pluginManager.js
parent9cfb5d9d53086142ff2d42ae710822f5f2310e5c (diff)
downloadvimperator-plugins-7eaf3037a993b72d95f630902a2c19d929ada602.tar.bz2
RegExp の関数的な呼び出しができなくなったので修正 for Firefox5
Diffstat (limited to 'pluginManager.js')
-rw-r--r--pluginManager.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/pluginManager.js b/pluginManager.js
index 629a4e7..846aaab 100644
--- a/pluginManager.js
+++ b/pluginManager.js
@@ -325,10 +325,10 @@ Plugin.prototype = { // {{{
}
});
} catch (e){}
- let m = /\bPLUGIN_INFO[ \t\r\n]*=[ \t\r\n]*<VimperatorPlugin(?:[ \t\r\n][^>]*)?>([\s\S]+?)<\/VimperatorPlugin[ \t\r\n]*>/(source);
+ let m = /\bPLUGIN_INFO[ \t\r\n]*=[ \t\r\n]*<VimperatorPlugin(?:[ \t\r\n][^>]*)?>([\s\S]+?)<\/VimperatorPlugin[ \t\r\n]*>/.exec(source);
if (m){
m = m[1].replace(/(?:<!(?:\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]|--(?:[^-]|-(?!-))*--)>)+/g, '');
- m = /^[\w\W]*?<version(?:[ \t\r\n][^>]*)?>([^<]+)<\/version[ \t\r\n]*>/(m);
+ m = /^[\w\W]*?<version(?:[ \t\r\n][^>]*)?>([^<]+)<\/version[ \t\r\n]*>/.exec(m);
if (m){
version = m[1];
}