2
0

🐛 (whatsapp) Fix last char slicing if new line

This commit is contained in:
Baptiste Arnaud
2024-01-11 15:09:13 +01:00
parent 5d971f7b6f
commit 5d088b1e64

View File

@ -37,5 +37,5 @@ export const convertRichTextToMarkdown = (
}, [])
.join('\n')
return test.endsWith('\n') ? test.slice(0, -2) : test
return test.endsWith('\n') ? test.slice(0, -1) : test
}