From a83fd29829c7bb9a5860f5180d756f5cea9964f5 Mon Sep 17 00:00:00 2001 From: Jim O'Regan Date: Wed, 2 Oct 2024 13:45:27 +0000 Subject: [PATCH] C0209 --- matcha/text/cleaners.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matcha/text/cleaners.py b/matcha/text/cleaners.py index 36776e3..f45ece8 100644 --- a/matcha/text/cleaners.py +++ b/matcha/text/cleaners.py @@ -38,7 +38,7 @@ _whitespace_re = re.compile(r"\s+") # List of (regular expression, replacement) pairs for abbreviations: _abbreviations = [ - (re.compile("\\b%s\\." % x[0], re.IGNORECASE), x[1]) + (re.compile(f"\\b{x[0]}\\.", re.IGNORECASE), x[1]) for x in [ ("mrs", "misess"), ("mr", "mister"),