From e1ff00930e00cbe23d80fcd5d6b85a1968171940 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Wed, 22 Apr 2026 12:18:04 +0200 Subject: [PATCH] format-changelog.js: print error when typewriter quotes are used --- scripts/format-changelog.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/format-changelog.js b/scripts/format-changelog.js index f790a10ffd..97496a30c3 100644 --- a/scripts/format-changelog.js +++ b/scripts/format-changelog.js @@ -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); -}); \ No newline at end of file +});