Skip to content

Commit 2e57752

Browse files
committed
Changed variable name.
1 parent 99a0727 commit 2e57752

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/loaders.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
const fs = require('fs');
44
const path = require('path');
55

6-
const HANDLEBARS_REGEX = /\.(hbs|handlebars)$/;
7-
const JAVASCRIPT_REGEX = /\.(js)$/;
6+
const HANDLEBARS_PATTERN = /\.(hbs|handlebars)$/;
7+
const JAVASCRIPT_PATTERN = /\.(js)$/;
88

99
const NODE_MODULE_DIRECTORIES = [
1010
path.join(__dirname, '../node_modules'),
@@ -103,11 +103,11 @@ const loadPlugin = config => new Promise((resolve, reject) => {
103103

104104
});
105105

106-
} else if (stats && stats.isFile() && config.layout.match(HANDLEBARS_REGEX)) {
106+
} else if (stats && stats.isFile() && config.layout.match(HANDLEBARS_PATTERN)) {
107107

108108
resolve(require('doxdox-plugin-handlebars'));
109109

110-
} else if (stats && stats.isFile() && config.layout.match(JAVASCRIPT_REGEX)) {
110+
} else if (stats && stats.isFile() && config.layout.match(JAVASCRIPT_PATTERN)) {
111111

112112
resolve(require(path.join(process.cwd(), config.layout)));
113113

0 commit comments

Comments
 (0)