diff --git a/src/node.js b/src/node.js index 752a2a3cc9..5891551aec 100644 --- a/src/node.js +++ b/src/node.js @@ -293,7 +293,7 @@ function findModulePath (id, dirs, callback) { return; } - if (/.(js|node)$/.exec(id)) { + if (/\.(js|node)$/.exec(id)) { throw new Error("No longer accepting filename extension in module names"); }