From 67a449a276d250950dd839ffb37bb2b9bb7a82bd Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Tue, 24 Nov 2015 16:19:35 +0100 Subject: [PATCH] Correct regex on CJS parser to detect a core module --- lib/parse/cjs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/parse/cjs.js b/lib/parse/cjs.js index 462134e5..46f5af06 100644 --- a/lib/parse/cjs.js +++ b/lib/parse/cjs.js @@ -31,7 +31,7 @@ util.inherits(CJS, Base); */ CJS.prototype.normalize = function (filename) { filename = this.replaceBackslashInPath(filename); - if (filename.charAt(0) !== '/' && !filename.match(/^[a-z]:\//i)) { + if (filename.charAt(0) !== '/' && !filename.match(/^[a-z]+\//i)) { // a core module (not mapped to a file) return filename; }