diff --git a/lib/commands/explain.js b/lib/commands/explain.js index 1505b4dbf5e9a..5f37ba9925f41 100644 --- a/lib/commands/explain.js +++ b/lib/commands/explain.js @@ -92,7 +92,7 @@ class Explain extends ArboristWorkspaceCmd { } // if it's a location, get that node - const maybeLoc = arg.replace(/\\/g, '/').replace(/\/+$/, '') + const maybeLoc = arg.replace(/\\/g, '/').replace(/(? class IdealTreeBuilder extends cls { // normalize trailing slash const registry = options.registry || 'https://registry.npmjs.org' - options.registry = this.registry = registry.replace(/\/+$/, '') + '/' + options.registry = this.registry = registry.replace(/(?