Browse Source

Fix regexp in file extension checking

v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
c6bd0e56cb
  1. 2
      src/node.js

2
src/node.js

@ -293,7 +293,7 @@ function findModulePath (id, dirs, callback) {
return; return;
} }
if (/.(js|node)$/.exec(id)) { if (/\.(js|node)$/.exec(id)) {
throw new Error("No longer accepting filename extension in module names"); throw new Error("No longer accepting filename extension in module names");
} }

Loading…
Cancel
Save