forked from rosebudai/OpenRCT2-Web
Allow typewriter quotes in inline code blocks
This commit is contained in:
1 file changed
+2
-1
@@ -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 “ ”)`);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user