import { a as normalizeLowercaseStringOrEmpty } from "./string-coerce-DKw2K5wM.js";
//#region src/infra/net/hostname.ts
function normalizeHostname(hostname) {
	const normalized = normalizeLowercaseStringOrEmpty(hostname).replace(/\.$/, "");
	if (normalized.startsWith("[") && normalized.endsWith("]")) return normalized.slice(1, -1);
	return normalized;
}
//#endregion
export { normalizeHostname as t };
