mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-19 06:56:20 +00:00
@@ -192,7 +192,12 @@ const useChatInputWidgetState = () =>
|
||||
}
|
||||
}
|
||||
|
||||
const preserveTrailingSpaces = (message: string) => message.replace(/ +$/g, match => '\u00A0'.repeat(match.length));
|
||||
const preserveTrailingSpaces = (message: string) =>
|
||||
{
|
||||
if(message.startsWith(':')) return message;
|
||||
|
||||
return message.replace(/ +$/g, match => '\u00A0'.repeat(match.length));
|
||||
};
|
||||
|
||||
const dispatchChatMessage = (message: string) =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user