filter '\u0000' from unpacked data

This commit is contained in:
turnoffthiscomputer
2024-10-10 14:57:32 -07:00
parent 070e40b694
commit c7b1b31d2b

View File

@@ -554,7 +554,9 @@ export function getAttributeFromUnpackedReveal(unpackedReveal: string[], attribu
const position = attributeToPosition[attribute];
let attributeValue = '';
for (let i = position[0]; i <= position[1]; i++) {
attributeValue += unpackedReveal[i];
if (unpackedReveal[i] !== '\u0000') {
attributeValue += unpackedReveal[i];
}
}
return attributeValue;
}