aboutsummaryrefslogtreecommitdiffstats
path: root/vanilla/node_modules/tldts-core/src/subdomain.ts
diff options
context:
space:
mode:
Diffstat (limited to 'vanilla/node_modules/tldts-core/src/subdomain.ts')
-rw-r--r--vanilla/node_modules/tldts-core/src/subdomain.ts11
1 files changed, 0 insertions, 11 deletions
diff --git a/vanilla/node_modules/tldts-core/src/subdomain.ts b/vanilla/node_modules/tldts-core/src/subdomain.ts
deleted file mode 100644
index bbb9c97..0000000
--- a/vanilla/node_modules/tldts-core/src/subdomain.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * Returns the subdomain of a hostname string
- */
-export default function getSubdomain(hostname: string, domain: string): string {
- // If `hostname` and `domain` are the same, then there is no sub-domain
- if (domain.length === hostname.length) {
- return '';
- }
-
- return hostname.slice(0, -domain.length - 1);
-}