diff --git a/lib/hooks/helpers/load-helpers.js b/lib/hooks/helpers/load-helpers.js index ba383fa26..ca4acdbba 100644 --- a/lib/hooks/helpers/load-helpers.js +++ b/lib/hooks/helpers/load-helpers.js @@ -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) {