aboutsummaryrefslogtreecommitdiff
path: root/src/routes/api/blog.json/+server.ts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/routes/api/blog.json/+server.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/api/blog.json/+server.ts b/src/routes/api/blog.json/+server.ts
index f416647..b942c95 100644
--- a/src/routes/api/blog.json/+server.ts
+++ b/src/routes/api/blog.json/+server.ts
@@ -28,7 +28,7 @@ export const POST = async({ fetch, request }) => {
/*** HELPER ------------------------------------------- ***/
-function parseMemo(text: string): string {
+function parseMemo(text: string): Array<string> {
const intro = text.split(/^Body$/m)[0];
const lines = intro.split("\n").filter(Boolean);
const format = [""];