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 33const fs = require ( 'fs' ) ;
44const path = require ( 'path' ) ;
55
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 ) $ / ;
88
99const 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
You can’t perform that action at this time.
0 commit comments