/** * GSC domain properties arrive as `sc-domain:example.com`. * Keep the stored id/name intact; strip the scheme only for UI. */ export function formatPropertyLabel(name: string): string { const trimmed = name.trim(); if (trimmed === '' || /^https?:\/\//i.test(trimmed)) { return trimmed; } const colon = trimmed.indexOf(':'); if (colon > 0) { return trimmed.slice(colon + 1); } return trimmed; }