From 11d551f8a3029084bd449f35d9bcd71c31da1704 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Mon, 17 May 2021 20:39:23 +0530 Subject: [PATCH] Add js-doc for parsePlainBody Signed-off-by: RMidhunSuresh --- src/domain/session/room/timeline/MessageBody.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/domain/session/room/timeline/MessageBody.js b/src/domain/session/room/timeline/MessageBody.js index a2250dfb..de8fcc73 100644 --- a/src/domain/session/room/timeline/MessageBody.js +++ b/src/domain/session/room/timeline/MessageBody.js @@ -1,5 +1,10 @@ import { linkify } from "./linkify/linkify.js"; +/** + * Parse text into parts such as newline, links and text. + * @param {string} body A string to parse into parts + * @returns {MessageBody} Parsed result + */ export function parsePlainBody(body) { const parts = []; const lines = body.split("\n");