mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
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:
@ -69,7 +69,6 @@ module.exports = {
|
|||||||
'no-constant-condition': 'off',
|
'no-constant-condition': 'off',
|
||||||
'no-empty': 'off',
|
'no-empty': 'off',
|
||||||
'no-unsafe-finally': 'off',
|
'no-unsafe-finally': 'off',
|
||||||
'no-dupe-keys': 'off',
|
'no-dupe-keys': 'off'
|
||||||
'no-irregular-whitespace': 'off'
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -1285,10 +1285,10 @@ async function charaWrite(img_url, data, target_img, response = undefined, mes =
|
|||||||
for (let tEXtChunk of tEXtChunks) {
|
for (let tEXtChunk of tEXtChunks) {
|
||||||
chunks.splice(chunks.indexOf(tEXtChunk), 1);
|
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');
|
const base64EncodedData = Buffer.from(data, 'utf8').toString('base64');
|
||||||
chunks.splice(-1, 0, PNGtext.encode('chara', base64EncodedData));
|
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)));
|
writeFileAtomicSync(charactersPath + target_img + '.png', Buffer.from(encode(chunks)));
|
||||||
if (response !== undefined) response.send(mes);
|
if (response !== undefined) response.send(mes);
|
||||||
|
Reference in New Issue
Block a user