← back to Wallco Ai
cactus-curator: fix regex typo in TIF-path basename extractor
1097a55ec2aeb789188f186f20e5661e4856b9f6 · 2026-05-28 09:59:05 -0700 · Steve Abrams
1f775202 (17 min ago) introduced `/^.*\\//` which terminated the regex
literal early (escaped backslash + slash). Whole inline <script> failed
to parse — page rendered the static HTML but no fetches/UI logic ran
(/admin/cactus-curator?category=drunk-animals showed blank).
Fix is a 1-char swap: `\\/` -> `\/` (escape the forward slash so the
regex actually matches a '/' in the path).
Files touched
M public/admin/cactus-curator.html
Diff
commit 1097a55ec2aeb789188f186f20e5661e4856b9f6
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Thu May 28 09:59:05 2026 -0700
cactus-curator: fix regex typo in TIF-path basename extractor
1f775202 (17 min ago) introduced `/^.*\\//` which terminated the regex
literal early (escaped backslash + slash). Whole inline <script> failed
to parse — page rendered the static HTML but no fetches/UI logic ran
(/admin/cactus-curator?category=drunk-animals showed blank).
Fix is a 1-char swap: `\\/` -> `\/` (escape the forward slash so the
regex actually matches a '/' in the path).
---
public/admin/cactus-curator.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/public/admin/cactus-curator.html b/public/admin/cactus-curator.html
index d2041a2..18778fb 100644
--- a/public/admin/cactus-curator.html
+++ b/public/admin/cactus-curator.html
@@ -326,7 +326,7 @@ function card(d){
<span class="b ${d.is_published?'pub':'unpub'}">${d.is_published?'PUB':'unpub'}</span>
${d.web_viewer?'<span class="b web">WEB</span>':''}
${d.tif_path
- ? `<span class="b tif" title="TIF archive: ${d.tif_w_px||'?'}×${d.tif_h_px||'?'}px · ${d.tif_bytes?(d.tif_bytes/1024/1024).toFixed(2)+' MB':'?'} · ${(d.tif_path||'').replace(/^.*\\//,'')}">📦 TIF ${d.tif_w_px||''}</span>`
+ ? `<span class="b tif" title="TIF archive: ${d.tif_w_px||'?'}×${d.tif_h_px||'?'}px · ${d.tif_bytes?(d.tif_bytes/1024/1024).toFixed(2)+' MB':'?'} · ${(d.tif_path||'').replace(/^.*\//,'')}">📦 TIF ${d.tif_w_px||''}</span>`
: `<span class="b notif" title="no TIF archive — generate via /admin/etsy-bucket or scripts/archive-svg-5400.js">📦 NO TIF</span>`}
<span class="b ${verdictClass(d.seam_verdict)}">${d.seam_verdict||'no scan'}</span>
${failReason(d).map(r=>`<span class="b reason" title="failed: ${r}">${r}</span>`).join('')}
← 4b8026f design page: scrub URL credentials via history.replaceState
·
back to Wallco Ai
·
cactus-curator: add ★ top-N rank pill + ✨ fresh chip (24h) t 82cafd8 →