fix(catalogue): avoid literal em dash in validator

This commit is contained in:
jjbrunton committed 2026-09-05 20:28:26 +01:00
1 parent ddf1e33a4e
commit d604cd7a11
1 file changed
+1 -1
+1 -1
View File
@@ -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') {