updating the title for the status matcher

This commit is contained in:
Gordon Pedersen 2024-05-14 10:38:13 +10:00
parent 3849dfa92c
commit 1b64bffe3f

View file

@ -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 = {