Skip to content

v688: Flag curly double quotes in SmartQuotes (#1079)

Latest

Choose a tag to compare

@github-actions github-actions released this 27 Nov 15:01
7ca85eb
RedHat.SmartQuotes swapped only U+201F, U+2033, and U+2036 for a
straight double quote. It did not flag U+201C and U+201D, the curly
double quotes that word processors insert most often.

Use character classes that cover U+2018 and U+2019 for single quotes,
and U+201C, U+201D, U+201F, U+2033, and U+2036 for double quotes. Add
fixtures for the newly covered characters.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Aidan Reilly <aireilly@redhat.com>

rh-pre-commit.version: 2.4.0
rh-pre-commit.check-secrets: ENABLED