From 1b64bffe3f6a157f3f14c30d0b851a8de54fccd7 Mon Sep 17 00:00:00 2001 From: Gordon Pedersen Date: Tue, 14 May 2024 10:38:13 +1000 Subject: [PATCH] updating the title for the status matcher --- src/worker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/worker.js b/src/worker.js index f7959ba..8dfd998 100644 --- a/src/worker.js +++ b/src/worker.js @@ -84,7 +84,7 @@ async function handleLol(body, env) { } // create a "title" for the status - const title = status.emoji + ' ' + status.content.match(/((\s*\S+){10})([\s\S]*)/)[1] + '...' + const title = status.emoji + ' ' + status.content.match(/((\s*\S+){10})([\s\S]*)/)[1].replaceAll('\n', ' ') + '...' // this is the frontmatter data we're adding to the markdown file let frontmatter = {