fix: handle better \u0000 in python result

This commit is contained in:
Ruben Fiszel
2024-02-08 16:02:30 +01:00
parent 9f98caa072
commit e4dc972d40
2 changed files with 2 additions and 7 deletions
@@ -286,7 +286,7 @@ def to_b_64(v: bytes):
b64 = base64.b64encode(v)
return b64.decode('ascii')
replace_nan = re.compile(r'\bNaN\b')
replace_nan = re.compile(r'(?:\bNaN\b|\\u0000)')
try:
res = inner_script.main(**args)
typ = type(res)
@@ -998,7 +998,7 @@ def to_b_64(v: bytes):
b64 = base64.b64encode(v)
return b64.decode('ascii')
replace_nan = re.compile(r'\bNaN\b')
replace_nan = re.compile(r'(?:\bNaN\b|\\u0000)')
sys.stdout.write('start\n')
for line in sys.stdin:
@@ -50,9 +50,4 @@
createText="Press enter to use this non-predefined value"
/>
</div>
{#if value}
<div class="-mt-2">
<span class="text-2xs text-secondary">selected: {value}</span>
</div>
{/if}
</div>