Skip to content

Commit

Permalink
Remove _ prefix as it isn't allowed by npm config (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-boothman committed Aug 11, 2021
1 parent 57bcc06 commit a964e5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util.js
Expand Up @@ -61,7 +61,7 @@ function urlTemplate (opts) {
}

function getEnvPrefix (pkgName) {
return 'npm_config_' + (pkgName || '').replace(/[^a-zA-Z0-9]/g, '_')
return 'npm_config_' + (pkgName || '').replace(/[^a-zA-Z0-9]/g, '_').replace(/^_/, '')
}

function getHostMirrorUrl (opts) {
Expand Down

0 comments on commit a964e5b

Please sign in to comment.