clean up and improve perf

This commit is contained in:
Ren Amamiya
2023-09-28 16:18:04 +07:00
parent 4f4e2f5ccd
commit cb3c95b133
19 changed files with 246 additions and 137 deletions

View File

@@ -20,6 +20,8 @@ function isURL(string: string) {
}
export function parser(eventContent: string) {
if (!eventContent) return '';
try {
const content: RichContent = {
parsed: null,