From 5b3593ec1e5ed2615d36dc2236c0d3a34b3f8c61 Mon Sep 17 00:00:00 2001 From: tyler Date: Thu, 16 May 2024 16:56:35 -0400 Subject: [PATCH] Trimmed whitespace in RumbleChat arguments --- chat.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chat.go b/chat.go index b367c92..0a83bcd 100644 --- a/chat.go +++ b/chat.go @@ -132,7 +132,7 @@ func parseRumbleChatArgs(argsS string) []string { arg := []rune{} for _, c := range argsS { if c == ',' && open == 0 { - args = append(args, string(arg)) + args = append(args, strings.TrimSpace(string(arg))) arg = []rune{} } else { if c == '[' { @@ -146,7 +146,7 @@ func parseRumbleChatArgs(argsS string) []string { } } if len(arg) > 0 { - args = append(args, string(arg)) + args = append(args, strings.TrimSpace(string(arg))) } return args