Allow typewriter quotes in inline code blocks

This commit is contained in:
Gymnasiast committed 2026-04-29 20:12:12 +02:00
1 parent 0fb31d3582
commit a166e10e4a
1 file changed
+2 -1
+2 -1
View File
@@ -127,7 +127,8 @@ function readVersionEntry(ctx, rawEntry, versionInfo) {
}
}
if (text.includes('"') || text.includes('\'')) {
const textWithoutCode = text.replaceAll(/`.*`/g, '');
if (textWithoutCode.includes('"') || textWithoutCode.includes('\'')) {
reportLineError(rawEntry, `Use of typewriter quotes (' or "), please use typographical quotes (‘ ’ and “ ”)`);
}