This commit is contained in:
Sander Land committed 2020-06-09 16:31:02 +02:00
1 parent fe5a3e934f
commit 5522ed8f9f
1 file changed
+2
+2
View File
@@ -130,6 +130,8 @@ class SGFNode:
if isinstance(value, list):
self.properties[property] = value
else:
if isinstance(value, str):
value = re.sub(r"(?<!\\)(\])", r"\\\1", value) # escape unescaped ] - TODO: this could be \\[ or something and still break / unescape as well
self.properties[property] = [value]
def get_property(self, property, default=None) -> Any: