Skip to content

Commit

Permalink
Allow any file extension for actions loaded from disk
Browse files Browse the repository at this point in the history
  • Loading branch information
sgress454 committed Sep 27, 2016
1 parent df2ee46 commit da0ed6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/app/private/controller/load-modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit da0ed6f

Please sign in to comment.