Enable no-irregular-whitespace lint

A couple comments contained non-breaking spaces (I think), which I
replaced with regular spaces.
This commit is contained in:
valadaptive 2023-12-02 09:10:41 -05:00
parent 12cdb76a20
commit 8c89f373fa
2 changed files with 3 additions and 4 deletions

View File

@ -69,7 +69,6 @@ module.exports = {
'no-constant-condition': 'off',
'no-empty': 'off',
'no-unsafe-finally': 'off',
'no-dupe-keys': 'off',
'no-irregular-whitespace': 'off'
'no-dupe-keys': 'off'
}
};

View File

@ -1285,10 +1285,10 @@ async function charaWrite(img_url, data, target_img, response = undefined, mes =
for (let tEXtChunk of tEXtChunks) {
chunks.splice(chunks.indexOf(tEXtChunk), 1);
}
// Add new chunks before the IEND chunk
// Add new chunks before the IEND chunk
const base64EncodedData = Buffer.from(data, 'utf8').toString('base64');
chunks.splice(-1, 0, PNGtext.encode('chara', base64EncodedData));
//chunks.splice(-1, 0, text.encode('lorem', 'ipsum'));
//chunks.splice(-1, 0, text.encode('lorem', 'ipsum'));
writeFileAtomicSync(charactersPath + target_img + '.png', Buffer.from(encode(chunks)));
if (response !== undefined) response.send(mes);