mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
Fix ES6 template string
should be ${...} not @{...}
This commit is contained in:
parent
8927d7d144
commit
f8dc1da537
1 changed files with 2 additions and 2 deletions
|
@ -88,13 +88,13 @@ function validate_metadata(object, name) {
|
|||
* @return {String} base registry url
|
||||
*/
|
||||
function combineBaseUrl(protocol, host, prefix) {
|
||||
let result = '@{protocol}://@{host}';
|
||||
let result = '${protocol}://${host}';
|
||||
|
||||
if (prefix) {
|
||||
prefix = prefix.replace(/\/$/, '');
|
||||
|
||||
result = (prefix.indexOf('/') === 0)
|
||||
? '@{result}@{prefix}'
|
||||
? '${result}${prefix}'
|
||||
: prefix;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue