[chore] Fix lint errors

This commit is contained in:
Cohee
2024-10-13 14:02:53 +03:00
parent 1c3d33c282
commit 93137e3e2a
9 changed files with 9 additions and 13 deletions

View File

@ -1,8 +1,6 @@
import {
saveSettingsDebounced,
systemUserName,
hideSwipeButtons,
showSwipeButtons,
getRequestHeaders,
event_types,
eventSource,
@ -2210,7 +2208,7 @@ function processReply(str) {
str = str.replaceAll('“', '');
str = str.replaceAll('\n', ', ');
str = str.normalize('NFD');
str = str.replace(/[^a-zA-Z0-9\.,:_(){}<>[\]\-']+/g, ' ');
str = str.replace(/[^a-zA-Z0-9.,:_(){}<>[\]\-']+/g, ' ');
str = str.replace(/\s+/g, ' '); // Collapse multiple whitespaces into one
str = str.trim();