Trimmed whitespace in RumbleChat arguments

This commit is contained in:
tyler 2024-05-16 16:56:35 -04:00
parent 35489361fe
commit 5b3593ec1e

View file

@ -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