From 42f331101eac6a1a1c21b05b2178f6032fc009ab Mon Sep 17 00:00:00 2001 From: justin Date: Wed, 29 Apr 2026 01:24:10 -0500 Subject: [PATCH] Skip CORES address suggestion when it's just the company name Co-Authored-By: Claude Opus 4.6 (1M context) --- site/src/components/intake/steps/OfficerStep.astro | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/site/src/components/intake/steps/OfficerStep.astro b/site/src/components/intake/steps/OfficerStep.astro index 9203796..13c4298 100644 --- a/site/src/components/intake/steps/OfficerStep.astro +++ b/site/src/components/intake/steps/OfficerStep.astro @@ -167,13 +167,16 @@ }); } - // CORES address (entity-level, not a person name) - if (d.cores?.address && d.cores.city) { + // CORES address — only if it looks like an actual street address + // (skip if it's just the company name, which CORES sometimes returns) + const coresAddr = (d.cores?.address || "").trim(); + const looksLikeStreet = coresAddr && /\d/.test(coresAddr) && !/^[A-Z].*\b(LLC|Inc|Corp|Ltd|LP|LLP)\b/i.test(coresAddr); + if (looksLikeStreet && d.cores.city) { suggestions.push({ name: "", title: "Principal address (from CORES)", source: "FCC CORES", - address: d.cores.address, + address: coresAddr, city: d.cores.city, state: d.cores.state || "", zip: d.cores.zip || "",