diff --git a/frontend/src/utils/readTextFile.js b/frontend/src/utils/readTextFile.js index f54f9182..6aa38a8a 100644 --- a/frontend/src/utils/readTextFile.js +++ b/frontend/src/utils/readTextFile.js @@ -20,14 +20,13 @@ export function decodeTextBytes(bytes) { // windows-1252 label as Latin-1. Undefined CP1252 bytes retain C1 values, // matching the browser Encoding Standard and the backend decoder. const c1 = [ - 0x20ac, 0x81, 0x201a, 0x192, 0x201e, 0x2026, 0x2020, 0x2021, - 0x2c6, 0x2030, 0x160, 0x2039, 0x152, 0x8d, 0x17d, 0x8f, - 0x90, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014, - 0x2dc, 0x2122, 0x161, 0x203a, 0x153, 0x9d, 0x17e, 0x178, + 0x20ac, 0x81, 0x201a, 0x192, 0x201e, 0x2026, 0x2020, 0x2021, 0x2c6, 0x2030, 0x160, 0x2039, + 0x152, 0x8d, 0x17d, 0x8f, 0x90, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014, 0x2dc, + 0x2122, 0x161, 0x203a, 0x153, 0x9d, 0x17e, 0x178, ]; - return Array.from(b, (byte) => String.fromCharCode( - byte >= 0x80 && byte <= 0x9f ? c1[byte - 0x80] : byte, - )).join(''); + return Array.from(b, (byte) => + String.fromCharCode(byte >= 0x80 && byte <= 0x9f ? c1[byte - 0x80] : byte), + ).join(''); } }