mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-10-31 10:19:43 +00:00
fix(catalogue): avoid literal em dash in validator
This commit is contained in:
1 parent
ddf1e33a4e
commit
d604cd7a11
1 file changed
+1
-1
@@ -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') {
|
||||
|
||||
Reference in new issue
Block a user