← back to Carmelwallpapers
fix: strip bare '-arte' (Arte International abbrev) from product slugs + sort denylist longest-first so 'arte international' strips before 'arte' (no 'international' residue). Closes residual leak from 2026-05-30 verify sweep.
f922bbaabcadd7a5ef49caa2b595aecc2c4e304e · 2026-05-30 09:51:31 -0700 · Steve Abrams
Files touched
Diff
commit f922bbaabcadd7a5ef49caa2b595aecc2c4e304e
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Sat May 30 09:51:31 2026 -0700
fix: strip bare '-arte' (Arte International abbrev) from product slugs + sort denylist longest-first so 'arte international' strips before 'arte' (no 'international' residue). Closes residual leak from 2026-05-30 verify sweep.
---
server.js | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/server.js b/server.js
index 74451e6..f28a475 100644
--- a/server.js
+++ b/server.js
@@ -18,7 +18,7 @@ const DATA_PATH = path.join(__dirname, 'data', 'products.json');
// longer match strips first.
const VENDORS_DENYLIST = [
'wolf gordon', 'nina campbell', 'jeffrey stevens', 'versace',
- 'arte international', 'lee jofa modern', 'lee jofa', 'innovations usa',
+ 'arte international', 'arte', 'lee jofa modern', 'lee jofa', 'innovations usa',
'innovations', 'koroseal', 'schumacher', 'candice olson', 'thibaut',
'maya romanoff', 'scalamandre', 'dedar', 'carnegie', 'cole and son',
'kravet', 'clarke and clarke', 'brunschwig', 'gp j baker', 'sandberg',
@@ -28,7 +28,9 @@ const VENDORS_DENYLIST = [
'roger thomas', 'stacy garcia', 'de gournay', 'romo', 'farrow and ball',
'colefax and fowler', 'sanderson', 'morris and co', 'osborne and little',
];
-const VENDOR_SLUG_RES = VENDORS_DENYLIST.map(v => {
+// sort longest-first so multi-word vendors strip before their abbreviations
+// (e.g. "arte international" before bare "arte" → no "international" residue)
+const VENDOR_SLUG_RES = VENDORS_DENYLIST.slice().sort((a, b) => b.length - a.length).map(v => {
const s = String(v).toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-+|-+$/g, '');
return new RegExp('(^|-)' + s + '(?=-|$)', 'gi');
});
← 24afde4 fix: strip vendor tokens from product slug (redactVendorSlug
·
back to Carmelwallpapers
·
scrub residual 3rd-party vendor names from products.json sou 13144ed →