


//#region src/utils/domain.ts
function getDomainFromUrl(url) {
	if (!url.startsWith("http://") && !url.startsWith("https://")) throw new Error("URL must start with \"https://\"");
	return url.split("://")[1].split(/[#/?]/)[0].split(":")[0];
}

//#endregion
exports.getDomainFromUrl = getDomainFromUrl;