From 3999690062ed9659361c0a5218647a591067a708 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Wed, 25 Nov 2020 21:04:24 +0000 Subject: [PATCH] Support Windows paths when installing tarball by path name Fixes #2769 --- packages/node_modules/@node-red/registry/lib/installer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/registry/lib/installer.js b/packages/node_modules/@node-red/registry/lib/installer.js index 19cdd7e27..03f9eb11c 100644 --- a/packages/node_modules/@node-red/registry/lib/installer.js +++ b/packages/node_modules/@node-red/registry/lib/installer.js @@ -35,7 +35,7 @@ var settings; const moduleRe = /^(@[^/@]+?[/])?[^/@]+?$/; const slashRe = process.platform === "win32" ? /\\|[/]/ : /[/]/; const pkgurlRe = /^(https?|git(|\+https?|\+ssh|\+file)):\/\//; -const localtgzRe = /^\/.+tgz$/; +const localtgzRe = /^([a-zA-Z]:|\/).+tgz$/; function init(runtime) { events = runtime.events;