Necmettin Karakaya
2020-07-19 00:33:27 +08:00
committed by GitHub
parent d5b5d4fc27
commit 24448c7504
6 changed files with 7 additions and 7 deletions

View File

@@ -9,7 +9,7 @@ type Domain = {
// we originally used the parse-domain npm module however this includes
// a large list of possible TLD's which increase the size of the bundle
// unneccessarily for our usecase of trusted input.
// unnecessarily for our usecase of trusted input.
export function parseDomain(url: string): ?Domain {
if (typeof url !== "string") return null;
if (url === "") return null;