🐛 (whatsapp) Fix last char slicing if new line
This commit is contained in:
@ -37,5 +37,5 @@ export const convertRichTextToMarkdown = (
|
|||||||
}, [])
|
}, [])
|
||||||
.join('\n')
|
.join('\n')
|
||||||
|
|
||||||
return test.endsWith('\n') ? test.slice(0, -2) : test
|
return test.endsWith('\n') ? test.slice(0, -1) : test
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user