aboutsummaryrefslogtreecommitdiffstats
path: root/appendAnchor.js
diff options
context:
space:
mode:
authorwlt2011-06-06 12:04:32 -0700
committerwlt2011-06-06 12:04:32 -0700
commit9cfb5d9d53086142ff2d42ae710822f5f2310e5c (patch)
tree7f108a372a8fc0bb43e2a8af3a5eeeb71cd30712 /appendAnchor.js
parentb533b28d4551f7a33112bdf2c3748f7c3e004b41 (diff)
downloadvimperator-plugins-9cfb5d9d53086142ff2d42ae710822f5f2310e5c.tar.bz2
Fx 5.0 BetaにしたらRegExp#exec()を間接的に呼び出せなくなったので
Diffstat (limited to 'appendAnchor.js')
-rw-r--r--appendAnchor.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/appendAnchor.js b/appendAnchor.js
index 77496e8..f148493 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?$/(scheme)) scheme = 'h' + scheme;
+ if (/^ttps?$/.exec(scheme)) scheme = 'h' + scheme;
let href = scheme + '://' + host;
// reset range