Skip to content

Commit

Permalink
Remove _ prefix as they arent allowed by npm config
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-boothman committed Jun 1, 2021
1 parent 5ee1a2f commit 2810200
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util.js
Original file line number Diff line number Diff line change
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 2810200

Please sign in to comment.