From d604cd7a11ba8b3eba774fffaddd76edcf448703 Mon Sep 17 00:00:00 2001 From: Jamie Brunton Date: Sat, 5 Sep 2026 20:28:26 +0100 Subject: [PATCH] fix(catalogue): avoid literal em dash in validator --- scripts/validate-question-draft.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/validate-question-draft.mjs b/scripts/validate-question-draft.mjs index 9db99d7..2e14e2d 100644 --- a/scripts/validate-question-draft.mjs +++ b/scripts/validate-question-draft.mjs @@ -106,7 +106,7 @@ for (const [index, question] of questions.entries()) { expect(!banned.test(text), `${label} contains banned developer-authored term`); expect(!timeBound.test(text), `${label} contains time-bound language`); expect(!gendered.test(text), `${label} contains gendered partner language`); - expect(!text.includes('—'), `${label} contains an em dash`); + expect(!text.includes('\u2014'), `${label} contains an em dash`); } const normalized = normalize(question.text); if (question.question_type === 'swipe') {