File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 3
3
const fs = require ( 'fs' ) ;
4
4
const path = require ( 'path' ) ;
5
5
6
- const HANDLEBARS_REGEX = / \. ( h b s | h a n d l e b a r s ) $ / ;
7
- const JAVASCRIPT_REGEX = / \. ( j s ) $ / ;
6
+ const HANDLEBARS_PATTERN = / \. ( h b s | h a n d l e b a r s ) $ / ;
7
+ const JAVASCRIPT_PATTERN = / \. ( j s ) $ / ;
8
8
9
9
const NODE_MODULE_DIRECTORIES = [
10
10
path . join ( __dirname , '../node_modules' ) ,
@@ -103,11 +103,11 @@ const loadPlugin = config => new Promise((resolve, reject) => {
103
103
104
104
} ) ;
105
105
106
- } else if ( stats && stats . isFile ( ) && config . layout . match ( HANDLEBARS_REGEX ) ) {
106
+ } else if ( stats && stats . isFile ( ) && config . layout . match ( HANDLEBARS_PATTERN ) ) {
107
107
108
108
resolve ( require ( 'doxdox-plugin-handlebars' ) ) ;
109
109
110
- } else if ( stats && stats . isFile ( ) && config . layout . match ( JAVASCRIPT_REGEX ) ) {
110
+ } else if ( stats && stats . isFile ( ) && config . layout . match ( JAVASCRIPT_PATTERN ) ) {
111
111
112
112
resolve ( require ( path . join ( process . cwd ( ) , config . layout ) ) ) ;
113
113
You can’t perform that action at this time.
0 commit comments