diff --git a/client/src/utils/otherUtils.ts b/client/src/utils/otherUtils.ts index f85f308..e0a2306 100644 --- a/client/src/utils/otherUtils.ts +++ b/client/src/utils/otherUtils.ts @@ -36,6 +36,7 @@ export interface Metadata { } export const getMetadata = (event: Event) => { - const metadata: Metadata = JSON.parse(event.content) + const content = event.content.replace(/[\n\r\t]/g, '') + const metadata: Metadata = JSON.parse(content) return metadata } \ No newline at end of file