← back to Designerwallcoverings
TK-11076: SKIP comma-form titles whose pre-comma pattern is the brand name (Marburg, X — no real colorway)
cb50cadd391a5d10a27b1729874b37859c8671d3 · 2026-09-01 17:36:39 -0700 · Steve Abrams
Files touched
M scripts/colorway-title-anchor/parse-colorway.mjs
Diff
commit cb50cadd391a5d10a27b1729874b37859c8671d3
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Tue Sep 1 17:36:39 2026 -0700
TK-11076: SKIP comma-form titles whose pre-comma pattern is the brand name (Marburg, X — no real colorway)
---
scripts/colorway-title-anchor/parse-colorway.mjs | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/scripts/colorway-title-anchor/parse-colorway.mjs b/scripts/colorway-title-anchor/parse-colorway.mjs
index 01cbee5..70a4a68 100644
--- a/scripts/colorway-title-anchor/parse-colorway.mjs
+++ b/scripts/colorway-title-anchor/parse-colorway.mjs
@@ -124,6 +124,10 @@ export function parseColorway(title, vendor) {
// 3/4. Confidence gate.
if (!pattern) return { colorway: null, form, skip: true, reason: 'no-pattern', pattern: null };
if (!colorway) return { colorway: null, form, skip: true, reason: 'empty', pattern };
+ // Comma-form whose pre-comma "pattern" is just the brand name (e.g. "Marburg, Memento") has NO real
+ // colorway — the trailing token is a collection/pattern name, not a color. SKIP to avoid a wrong facet.
+ if (delim === 'comma' && vendor && collapse(pattern).toLowerCase() === collapse(vendor).toLowerCase())
+ return { colorway: null, form, skip: true, reason: 'pattern-is-vendor', pattern };
if (PLACEHOLDER.test(colorway)) return { colorway: null, form, skip: true, reason: 'placeholder', pattern };
if (colorway.length > 60) return { colorway: null, form, skip: true, reason: 'too-long', pattern };
← 8339f05 chore: v0.1.9 (session close — sanderson daily-batch payload
·
back to Designerwallcoverings
·
auto-data-snapshot: 2026-09-01T18:00:51 (5 data files) — dat df4eff3 →