demagify remove faults

This commit is contained in:
cronekorkn 2023-02-23 18:27:27 +01:00
parent 44ec984552
commit 3c996c63f8
Signed by: cronekorkn
SSH key fingerprint: SHA256:v0410ZKfuO1QHdgKBsdQNF64xmTxOF8osF1LIqwTcVw

View file

@ -14,7 +14,7 @@ def demagify(data):
match = search(r'^\!([0-9a-zA-Z_-]{,255})\:(.*)$', data) match = search(r'^\!([0-9a-zA-Z_-]{,255})\:(.*)$', data)
if match: if match:
magicstring, content = match.groups() magicstring, content = match.groups()
return converters[magicstring](content) return converters[magicstring](content).value
else: else:
return data return data
elif isinstance(data, dict): elif isinstance(data, dict):