Fix regexp in file extension checking

This commit is contained in:
Ryan Dahl 2009-11-04 12:39:08 +01:00
parent 60131fc88c
commit c6bd0e56cb

View File

@ -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");
}