From a9bc646c4a23abe7b815ff0d95cf3ab5e264242d Mon Sep 17 00:00:00 2001 From: Daniel James Smith Date: Thu, 11 Nov 2021 16:49:38 +0100 Subject: [PATCH] Added tldts.noop.ts which if used will always fallback to the original parsing --- common/src/misc/tldts.noop.ts | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 common/src/misc/tldts.noop.ts diff --git a/common/src/misc/tldts.noop.ts b/common/src/misc/tldts.noop.ts new file mode 100644 index 00000000..c0a7a622 --- /dev/null +++ b/common/src/misc/tldts.noop.ts @@ -0,0 +1,7 @@ +export function parse(url: string, options?: object): null { + return null; +} + +export function getHostName(host: string, options?: object): null { + return null; +}