1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Support Windows paths when installing tarball by path name

Fixes #2769
This commit is contained in:
Nick O'Leary 2020-11-25 21:04:24 +00:00
parent d57edaa4c1
commit 3999690062
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -35,7 +35,7 @@ var settings;
const moduleRe = /^(@[^/@]+?[/])?[^/@]+?$/; const moduleRe = /^(@[^/@]+?[/])?[^/@]+?$/;
const slashRe = process.platform === "win32" ? /\\|[/]/ : /[/]/; const slashRe = process.platform === "win32" ? /\\|[/]/ : /[/]/;
const pkgurlRe = /^(https?|git(|\+https?|\+ssh|\+file)):\/\//; const pkgurlRe = /^(https?|git(|\+https?|\+ssh|\+file)):\/\//;
const localtgzRe = /^\/.+tgz$/; const localtgzRe = /^([a-zA-Z]:|\/).+tgz$/;
function init(runtime) { function init(runtime) {
events = runtime.events; events = runtime.events;