diff --git a/lib/repl.js b/lib/repl.js index 361745fc16..26b939c2b0 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -454,11 +454,7 @@ REPLServer.prototype.complete = function(line, callback) { completionGroupsLoaded(); } else if (match = line.match(requireRE)) { // require('...') - //TODO: suggest require.exts be exposed to be introspec registered - //extensions? - //TODO: suggest include the '.' in exts in internal repr: parity with - //`path.extname`. - var exts = ['.js', '.node']; + var exts = Object.keys(require.extensions); var indexRe = new RegExp('^index(' + exts.map(regexpEscape).join('|') + ')$');