Fixed NetBIOS space removal

feature-extract-files
n1474335 2017-12-19 14:12:18 +00:00
parent a7a0cacddb
commit 5ec210990b
1 changed files with 4 additions and 1 deletions

View File

@ -56,7 +56,10 @@ const NetBIOS = {
output.push((((input[i] & 0xff) - offset) << 4) |
(((input[i + 1] & 0xff) - offset) & 0xf));
}
output = output.filter(x => x !== 32);
for (let i = output.length - 1; i > 0; i--) {
if (output[i] === 32) output.splice(i, i);
else break;
}
}
return output;