[postprocessor:metadata] support putting keys in quotes

for mode 'modify' and 'delete'
based on fe41a2b1
This commit is contained in:
Mike Fährmann
2023-04-25 14:30:18 +02:00
parent 7459e4abce
commit 3905f05f00
2 changed files with 8 additions and 8 deletions

View File

@@ -216,9 +216,9 @@ def _traverse(obj, key):
while "[" in key:
name, _, key = key.partition("[")
obj = obj[name.rstrip("]")]
obj = obj[name.strip("\"']")]
return obj, key.strip("]")
return obj, key.strip("\"']")
__postprocessor__ = MetadataPP