fix: prevent undefined in URL

This commit is contained in:
Sebastian 2022-06-09 10:04:30 -03:00
parent b419db505b
commit eb8bcc9532
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1

View File

@ -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;
} }