mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-02-21 07:29:37 +01:00
Fix ES string delimiters
Use ` in stand of '
This commit is contained in:
parent
f8dc1da537
commit
5336a0a611
@ -88,13 +88,13 @@ function validate_metadata(object, name) {
|
|||||||
* @return {String} base registry url
|
* @return {String} base registry url
|
||||||
*/
|
*/
|
||||||
function combineBaseUrl(protocol, host, prefix) {
|
function combineBaseUrl(protocol, host, prefix) {
|
||||||
let result = '${protocol}://${host}';
|
let result = `${protocol}://${host}`;
|
||||||
|
|
||||||
if (prefix) {
|
if (prefix) {
|
||||||
prefix = prefix.replace(/\/$/, '');
|
prefix = prefix.replace(/\/$/, '');
|
||||||
|
|
||||||
result = (prefix.indexOf('/') === 0)
|
result = (prefix.indexOf('/') === 0)
|
||||||
? '${result}${prefix}'
|
? `${result}${prefix}`
|
||||||
: prefix;
|
: prefix;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user