mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2026-05-06 07:56:46 -04:00
Allow typewriter quotes in inline code blocks
This commit is contained in:
@@ -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 “ ”)`);
|
reportLineError(rawEntry, `Use of typewriter quotes (' or "), please use typographical quotes (‘ ’ and “ ”)`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user