HomePhabricator

[lint] improve handling of escaped % in lint-format-strings

Description

[lint] improve handling of escaped % in lint-format-strings

Summary:
The linter considered 2 or more consecutive "%" as an escaped "%" character.
This fixes the problem: now the linter escapes only even numbers of "%" characters.

Test Plan:
Run unit tests (via doctest):

test/lint/lint-format-strings.py

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D13319

Details

Provenance
PiRKAuthored on Mar 14 2023, 07:50
PiRKPushed on Mar 14 2023, 08:52
Reviewer
Restricted Project
Differential Revision
D13319: [lint] improve handling of escaped % in lint-format-strings
Parents
rABCff9b66756476: [Cashtab] [Alias] Hyperlink the alias address preview
Branches
Unknown
Tags
Unknown