Add js-doc for parsePlainBody

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
RMidhunSuresh 2021-05-17 20:39:23 +05:30
parent d671bcec31
commit 11d551f8a3

View file

@ -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");