Files
ARTEX/chatbridge
Marco Azarmaneche 0613d74a38 fix(chatbridge): split a command from its arguments at any whitespace
parseCommand cut "/name@bot args" only at a space. A command whose
arguments followed on the next line or after a tab kept them in the
name: "/task\n42" was answered as an unknown command, and
"/task@bot\n42" read the bot name as "bot\n42", did not match, and
was ignored as addressed to another bot.

Split at the first unicode.IsSpace rune instead. Arguments that
already followed a space are unchanged, including multi-line ones.
2026-12-05 02:07:06 +01:00
..