fix: be more specific about replacing nan in python deser

This commit is contained in:
Ruben Fiszel
2023-06-09 08:40:58 +02:00
committed by GitHub
parent 5df509b703
commit b99e2273ae

View File

@@ -340,7 +340,7 @@ def to_b_64(v: bytes):
b64 = base64.b64encode(v)
return b64.decode('ascii')
replace_nan = re.compile(r'\bnan\b', re.IGNORECASE)
replace_nan = re.compile(r'\bNaN\b')
try:
res = inner_script.main(**args)
typ = type(res)