This commit is contained in:
RossAscends
2023-05-04 20:19:27 +09:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -5646,7 +5646,7 @@ $(document).ready(function () {
}
});
$(document).on('input', 'div[contenteditable="true"]', function () {
$(document).on('input', '.range-block-counter div[contenteditable="true"]', function () {
const caretPosition = saveCaretPosition($(this).get(0));
const myText = $(this).text().trim();
$(this).text(myText); // trim line breaks and spaces
+1 -1
View File
@@ -858,7 +858,7 @@ async function charaRead(img_url, input_format) {
description = exif_data['UserComment'].value[0];
}
try {
JSON.parse(description);
json5.parse(description);
char_data = description;
} catch {
const byteArr = description.split(",").map(Number);