Skip to content

Commit

Permalink
Exclude .md and .txt files when loading helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
sgress454 committed Nov 15, 2016
1 parent e1c33fe commit 69110d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hooks/helpers/load-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = function(sails, cb) {
// Load helper defs out of the specified folder
includeAll.optional({
dirname: sails.config.paths.helpers,
filter: /^(.+)\..+$/,
filter: /^([^.]+)\.(?:(?!md|txt).)+$/,
flatten: true,
keepDirectoryPath: true
}, function(err, helperDefs) {
Expand Down

0 comments on commit 69110d2

Please sign in to comment.