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

Commit 3f05db1

Browse files
committed
Improved model autoload regex
1 parent 9af341b commit 3f05db1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ var walk = function(path) {
2828
var newPath = path + '/' + file;
2929
var stat = fs.statSync(newPath);
3030
if (stat.isFile()) {
31-
if (/(.*)\.(js|coffee)/.test(file)) {
31+
if (/(.*)\.(js$|coffee$)/.test(file)) {
3232
require(newPath);
3333
}
3434
} else if (stat.isDirectory()) {

0 commit comments

Comments
 (0)