use new note parser for channel message

This commit is contained in:
Ren Amamiya
2023-05-02 16:33:42 +07:00
parent dfd1333db8
commit 90bcabf27b
5 changed files with 7 additions and 60 deletions

View File

@@ -57,12 +57,5 @@ export const noteParser = (event: Event) => {
}
});
// make sure no unnessary spaces are left
content.parsed.forEach((item: string, index: string) => {
if (typeof item === 'string') {
content.parsed[index] = item.replace(/^\x20+|\x20+$/gm, '');
}
});
return content;
};