aboutsummaryrefslogtreecommitdiffstats
path: root/appendAnchor.js
diff options
context:
space:
mode:
authorGael Pasgrimaud2011-06-25 10:15:32 +0200
committerGael Pasgrimaud2011-06-25 10:15:32 +0200
commitb5269a892b3a7dcb89c9c1913797b3d74ff1c476 (patch)
treeb3e06d958238cd3c8f2cb0922e588c64c40e54a3 /appendAnchor.js
parent95f5752645a1948a3f3d29471fbb7eeb98a4ecaa (diff)
parentd4e2c5327d707808086d3c1f020e884972698b21 (diff)
downloadvimperator-plugins-b5269a892b3a7dcb89c9c1913797b3d74ff1c476.tar.bz2
Merge branch 'master' of git://github.com/vimpr/vimperator-plugins
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..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?$/(scheme)) scheme = 'h' + scheme;
+ if (/^ttps?$/.test(scheme)) scheme = 'h' + scheme;
let href = scheme + '://' + host;
// reset range