[fix] whitespace handling

This commit is contained in:
fenris 2025-09-22 22:20:31 +02:00
parent 6a87c36941
commit 4404295af5

View file

@ -49,11 +49,11 @@ def string_coin(
pattern = (
_re.escape(options["character_open"])
+
("\s*" if options["ignore_whitespaces"] else "")
("\\s*" if options["ignore_whitespaces"] else "")
+
_re.escape(key)
+
("\s*" if options["ignore_whitespaces"] else "")
("\\s*" if options["ignore_whitespaces"] else "")
+
_re.escape(options["character_close"])
)