🆙 Fixed the commands

This commit is contained in:
duckietm
2026-05-08 16:44:45 +02:00
parent 6124610736
commit d88defb4a5
@@ -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) =>
{