This commit is contained in:
Radu Grosu 2025-04-03 15:55:53 +00:00 committed by GitHub
commit 33a8bdde26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -186,7 +186,7 @@ class ConfigTree(OrderedDict):
special_characters = '$}[]:=+#`^?!@*&.'
tokens = re.findall(
r'"[^"]+"|[^{special_characters}]+'.format(special_characters=re.escape(special_characters)),
r'"[^"]+"|[^{special_characters}]+|^$'.format(special_characters=re.escape(special_characters)),
string)
def contains_special_character(token):