feat: rich text input for chat

This commit is contained in:
Timothy J. Baek
2024-10-18 23:54:35 -07:00
parent 5e96922eba
commit f46b95300b
15 changed files with 268 additions and 178 deletions

View File

@@ -276,7 +276,8 @@ export const removeLastWordFromString = (inputString, wordString) => {
// Split the string into an array of words
const words = inputString.split(' ');
if (words.at(-1) === wordString) {
console.log(words.at(-1), wordString);
if (words.at(-1) === wordString || (wordString === '' && words.at(-1) === '\\#')) {
words.pop();
}