[fix] whitespace handling
This commit is contained in:
parent
6a87c36941
commit
4404295af5
|
|
@ -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"])
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue