format-changelog.js: print error when typewriter quotes are used

This commit is contained in:
Gymnasiast committed 2026-04-29 20:10:59 +02:00
1 parent 7990dbed7d
commit e1ff00930e
1 file changed
+5 -1
+5 -1
View File
@@ -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);
});
});