mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
refac
This commit is contained in:
@@ -297,7 +297,10 @@ export const removeLastWordFromString = (inputString, wordString) => {
|
||||
}
|
||||
|
||||
// Join the remaining words back into a string
|
||||
const resultString = words.join(' ');
|
||||
let resultString = words.join(' ');
|
||||
if (resultString !== '') {
|
||||
resultString += ' ';
|
||||
}
|
||||
|
||||
return resultString;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user