diff options
author | anekos | 2011-06-07 04:07:34 +0900 |
---|---|---|
committer | anekos | 2011-06-07 04:08:44 +0900 |
commit | 7eaf3037a993b72d95f630902a2c19d929ada602 (patch) | |
tree | 4433c9251d2289898ae7fa98453fb6128dac1764 /appendAnchor.js | |
parent | 9cfb5d9d53086142ff2d42ae710822f5f2310e5c (diff) | |
download | vimperator-plugins-7eaf3037a993b72d95f630902a2c19d929ada602.tar.bz2 |
RegExp の関数的な呼び出しができなくなったので修正 for Firefox5
Diffstat (limited to 'appendAnchor.js')
-rw-r--r-- | appendAnchor.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/appendAnchor.js b/appendAnchor.js index f148493..8ca02a2 100644 --- a/appendAnchor.js +++ b/appendAnchor.js @@ -73,7 +73,7 @@ let PLUGIN_INFO = // build URL let scheme = RegExp.$1, host = RegExp.$2, lastMatch = RegExp.lastMatch; - if (/^ttps?$/.exec(scheme)) scheme = 'h' + scheme; + if (/^ttps?$/.test(scheme)) scheme = 'h' + scheme; let href = scheme + '://' + host; // reset range |