UNPKG

@geek-fun/serverlessinsight

Version:

Full life cycle cross providers serverless application management for your fast-growing business.

11 lines (10 loc) 374 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.splitDomain = void 0; const splitDomain = (domain) => { const parts = domain.split('.'); const rr = parts.length > 2 ? parts[0] : '@'; const domainName = parts.length > 2 ? parts.slice(1).join('.') : domain; return { rr, domainName }; }; exports.splitDomain = splitDomain;