mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
filter '\u0000' from unpacked data
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user