diff --git a/server.js b/server.js index 455d77c16f..f1fb60e37b 100755 --- a/server.js +++ b/server.js @@ -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()) {