From a166e10e4afff5e6d988b59e711409f37a15a302 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Wed, 22 Apr 2026 12:25:56 +0200 Subject: [PATCH] Allow typewriter quotes in inline code blocks --- scripts/format-changelog.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/format-changelog.js b/scripts/format-changelog.js index 97496a30c3..6d0edd8301 100644 --- a/scripts/format-changelog.js +++ b/scripts/format-changelog.js @@ -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 “ ”)`); }