fix: prevent undefined in URL
This commit is contained in:
parent
b419db505b
commit
eb8bcc9532
@ -52,7 +52,7 @@ function replaceAll(
|
|||||||
): string {
|
): string {
|
||||||
let result = pattern;
|
let result = pattern;
|
||||||
for (const v in vars) {
|
for (const v in vars) {
|
||||||
result = result.replace(vars[v], values[v]);
|
result = result.replace(vars[v], !values[v] ? "" : values[v]);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user