forked from rosebudai/OpenRCT2-Web
format-changelog.js: print error when typewriter quotes are used
This commit is contained in:
1 file changed
+5
-1
@@ -126,6 +126,10 @@ function readVersionEntry(ctx, rawEntry, versionInfo) {
|
||||
reportLineError(rawEntry, `Invalid reference '${ref}', must be '#123' or 'project#123'`);
|
||||
}
|
||||
}
|
||||
|
||||
if (text.includes('"') || text.includes('\'')) {
|
||||
reportLineError(rawEntry, `Use of typewriter quotes (' or "), please use typographical quotes (‘ ’ and “ ”)`);
|
||||
}
|
||||
|
||||
const result = {
|
||||
changeType: changeType,
|
||||
@@ -301,4 +305,4 @@ fs.readFile(filePath, 'utf8', (err, data) => {
|
||||
cleanupVersions(versions);
|
||||
|
||||
printChangelog(versions);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user