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 “ ”)`); }