Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
Improved model autoload regex
Browse files Browse the repository at this point in the history
  • Loading branch information
themichaellai committed Oct 25, 2013
1 parent 9af341b commit 3f05db1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var walk = function(path) {
var newPath = path + '/' + file;
var stat = fs.statSync(newPath);
if (stat.isFile()) {
if (/(.*)\.(js|coffee)/.test(file)) {
if (/(.*)\.(js$|coffee$)/.test(file)) {
require(newPath);
}
} else if (stat.isDirectory()) {
Expand Down

0 comments on commit 3f05db1

Please sign in to comment.