diff --git a/lib/app/private/controller/load-modules.js b/lib/app/private/controller/load-modules.js index dfe85f93d7..67dfd396af 100644 --- a/lib/app/private/controller/load-modules.js +++ b/lib/app/private/controller/load-modules.js @@ -19,7 +19,7 @@ module.exports = function (cb) { // Load all files under the controllers folder. includeAll.optional({ dirname: sails.config.paths.controllers, - filter: new RegExp('(^.+\\.(?:js)$)'), + filter: new RegExp('(^[^.]+\\.(?:.+)$)'), flatten: true, keepDirectoryPath: true }, function(err, files) {