mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-22 22:59:28 +01:00
feat: rich text input for chat
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user