2
0

🚸 (buttons) Trim items content when parsing reply for better consistency

Closes #948
This commit is contained in:
Baptiste Arnaud
2023-10-23 15:13:43 +02:00
parent b301174106
commit 621fcd59f1

View File

@ -18,7 +18,9 @@ export const parseButtonsReply =
(acc, item) => {
if (
item.content &&
acc.strippedInput.toLowerCase().includes(item.content.toLowerCase())
acc.strippedInput
.toLowerCase()
.includes(item.content.trim().toLowerCase())
)
return {
strippedInput: acc.strippedInput.replace(item.content ?? '', ''),