summaryrefslogtreecommitdiffstats
path: root/lib/generate/plugin.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/generate/plugin.js')
-rw-r--r--lib/generate/plugin.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/generate/plugin.js b/lib/generate/plugin.js
index 5bd332b..72b65b5 100644
--- a/lib/generate/plugin.js
+++ b/lib/generate/plugin.js
@@ -15,7 +15,6 @@ var Plugin = function(name) {
this.infos = {};
_.each([
- name,
"gitbook-"+name,
"gitbook-plugin-"+name,
"gitbook-theme-"+name
@@ -112,7 +111,7 @@ Plugin.normalizeNames = function(names) {
.uniq()
.value();
- // Remove plugins starting with
+ // Remove plugins starting with
names = _.filter(names, function(name) {
return !_.contains(toremove, name) && !(name.length > 0 && name[0] == "-");
});
@@ -167,7 +166,7 @@ Plugin.fromList = function(names) {
if (!withTpl) return null;
return withTpl.resolveFile(withTpl.infos.templates[name]);
- }
+ }
});
};