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

View File

@@ -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: