[object Object]

← back to Commercialrealestate

index broker-line: tighten DRE link guard /^d{7,8}/ -> /^d{8}/ (Cody: CA DRE licenses are exactly 8 digits)

c0235f6b9d109fea1730e90f68e5c4669ef9d43d · 2026-08-03 10:57:12 -0700 · Steve Abrams

Files touched

Diff

commit c0235f6b9d109fea1730e90f68e5c4669ef9d43d
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Mon Aug 3 10:57:12 2026 -0700

    index broker-line: tighten DRE link guard /^d{7,8}/ -> /^d{8}/ (Cody: CA DRE licenses are exactly 8 digits)
---
 public/index.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/public/index.html b/public/index.html
index a81571c..99d78c8 100644
--- a/public/index.html
+++ b/public/index.html
@@ -1167,7 +1167,7 @@ function card(p){
     if(!b.name && !b.firm) return '';
     const nameStr = b.name ? `<strong>${esc(b.name)}</strong>` : '';
     const firmStr = b.firm ? esc(b.firm) : '';
-    const dreStr  = b.dre ? (function(){const L=String(b.dre).trim();return /^\d{7,8}$/.test(L)?` · DRE# <a href="https://www2.dre.ca.gov/PublicASP/pplinfo.asp?License_id=${encodeURIComponent(L)}" target="_blank" rel="noopener noreferrer" title="Full CA DRE license record ↗">${esc(L)} ↗</a>`:` · DRE ${esc(L)}`;})() : '';
+    const dreStr  = b.dre ? (function(){const L=String(b.dre).trim();return /^\d{8}$/.test(L)?` · DRE# <a href="https://www2.dre.ca.gov/PublicASP/pplinfo.asp?License_id=${encodeURIComponent(L)}" target="_blank" rel="noopener noreferrer" title="Full CA DRE license record ↗">${esc(L)} ↗</a>`:` · DRE ${esc(L)}`;})() : '';
     const phoneStr = b.phone ? ` · <a href="tel:${esc(String(b.phone).replace(/[^0-9+]/g,''))}">${esc(b.phone)}</a>` : '';
     const mlsStr  = b.mls  ? ` · MLS ${esc(b.mls)}` : '';
     const parts = [nameStr, firmStr].filter(Boolean).join(' · ');

← 3a9480d record all license numbers on every listing (display): email  ·  back to Commercialrealestate  ·  condos: date-order the list (newest-listed first) + all-lice 158df08 →