aboutsummaryrefslogtreecommitdiffstats
path: root/auto_source.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 /auto_source.js
parent95f5752645a1948a3f3d29471fbb7eeb98a4ecaa (diff)
parentd4e2c5327d707808086d3c1f020e884972698b21 (diff)
downloadvimperator-plugins-b5269a892b3a7dcb89c9c1913797b3d74ff1c476.tar.bz2
Merge branch 'master' of git://github.com/vimpr/vimperator-plugins
Diffstat (limited to 'auto_source.js')
-rw-r--r--auto_source.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/auto_source.js b/auto_source.js
index b1ff95f..5b979fd 100644
--- a/auto_source.js
+++ b/auto_source.js
@@ -135,7 +135,7 @@ let INFO =
function source (filepath) {
io.source(filepath);
- if (/\.js$/(filepath)) {
+ if (/\.js$/.test(filepath)) {
let ctx = liberator.plugins.contexts[filepath];
if (ctx) {
if (typeof liberator.plugins[ctx.NAME] === 'undefined')