This commit is contained in:
syuilo
2019-04-13 16:54:21 +09:00
parent cfee87d3ef
commit ae16b45c11
6 changed files with 15 additions and 10 deletions

View File

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