*Add normalizeDomain function
This commit is contained in:
parent
8739ba1f30
commit
87a563c92d
|
@ -51,3 +51,6 @@ export function resolveSuccess(records: DNSRecord[]): DNSResult {
|
|||
records,
|
||||
};
|
||||
}
|
||||
export function normalizeDomain(domain: string): string {
|
||||
return domain.replace(/^\.+|\.+$/g, "").replace(/^\/+|\/+$/g, "");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue