Fix bug
This commit is contained in:
parent
cfee87d3ef
commit
ae16b45c11
6 changed files with 15 additions and 10 deletions
|
@ -19,3 +19,8 @@ export function extractDbHost(uri: string) {
|
|||
export function toPuny(host: string) {
|
||||
return toASCII(host.toLowerCase());
|
||||
}
|
||||
|
||||
export function toPunyNullable(host: string | null | undefined): string | null {
|
||||
if (host == null) return null;
|
||||
return toASCII(host.toLowerCase());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue