//#region ../../contacts/core/src/parse-task-body.ts
/**
* Tasks store both a title (first line) and an optional body separated by a
* blank line. This is the canonical convention used by the task editor and
* by every consumer that displays tasks (contacts UI list, portal todo
* widget). Drift across consumers would mean some surfaces show "Title\n\n
* body details" verbatim while others split correctly — keep the delimiter
* convention in one place.
*/
function parseTaskBody(raw) {
	const split = raw.indexOf("\n\n");
	if (split >= 0) return {
		title: raw.slice(0, split),
		body: raw.slice(split + 2)
	};
	return {
		title: raw,
		body: ""
	};
}
//#endregion
export { parseTaskBody as t };

//# sourceMappingURL=parse-task-body-TDBqeoby.mjs.map