← back to Designer Wallcoverings
sangetsu: case-insensitive banned-word guard in overview extractor (fix 53 lowercase 'wallpaper' leaks)
5e8d6afae731bf827e7dbc0c90238c54961dc35a · 2026-07-02 07:48:19 -0700 · Steve
Files touched
M onboarding/sangetsu-lilycolor/scripts/sangetsu-storeapi-enrich.py
Diff
commit 5e8d6afae731bf827e7dbc0c90238c54961dc35a
Author: Steve <steve@designerwallcoverings.com>
Date: Thu Jul 2 07:48:19 2026 -0700
sangetsu: case-insensitive banned-word guard in overview extractor (fix 53 lowercase 'wallpaper' leaks)
---
.../sangetsu-lilycolor/scripts/sangetsu-storeapi-enrich.py | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/onboarding/sangetsu-lilycolor/scripts/sangetsu-storeapi-enrich.py b/onboarding/sangetsu-lilycolor/scripts/sangetsu-storeapi-enrich.py
index a3b913fa..70918623 100644
--- a/onboarding/sangetsu-lilycolor/scripts/sangetsu-storeapi-enrich.py
+++ b/onboarding/sangetsu-lilycolor/scripts/sangetsu-storeapi-enrich.py
@@ -32,8 +32,13 @@ def extract_overview(desc_html):
if not body:
return None
body = body[:600].strip()
- # banned-word guard
- body = re.sub(r"\bWallpapers?\b", "Wallcovering", body)
+ # banned-word guard (case-preserving, all cases — never emit "wallpaper")
+ body = re.sub(r"WALLPAPERS", "WALLCOVERINGS", body)
+ body = re.sub(r"WALLPAPER", "WALLCOVERING", body)
+ body = re.sub(r"Wallpapers", "Wallcoverings", body)
+ body = re.sub(r"Wallpaper", "Wallcovering", body)
+ body = re.sub(r"wallpapers", "wallcoverings", body)
+ body = re.sub(r"wallpaper", "wallcovering", body)
return body or None
← 8592e890 audit: readiness re-run post-Sangetsu-storeapi-enrich (descr
·
back to Designer Wallcoverings
·
sangetsu: add swap-guarded per-pattern enrichment runner + a 48b151f8 →