Fix regexp in file extension checking
This commit is contained in:
parent
60131fc88c
commit
c6bd0e56cb
@ -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…
x
Reference in New Issue
Block a user