🚸 (buttons) Trim items content when parsing reply for better consistency
Closes #948
This commit is contained in:
@@ -18,7 +18,9 @@ export const parseButtonsReply =
|
|||||||
(acc, item) => {
|
(acc, item) => {
|
||||||
if (
|
if (
|
||||||
item.content &&
|
item.content &&
|
||||||
acc.strippedInput.toLowerCase().includes(item.content.toLowerCase())
|
acc.strippedInput
|
||||||
|
.toLowerCase()
|
||||||
|
.includes(item.content.trim().toLowerCase())
|
||||||
)
|
)
|
||||||
return {
|
return {
|
||||||
strippedInput: acc.strippedInput.replace(item.content ?? '', ''),
|
strippedInput: acc.strippedInput.replace(item.content ?? '', ''),
|
||||||
|
|||||||
Reference in New Issue
Block a user