Closed emek7 closed 4 months ago
Thanks. I think I solved this in the v1
branch that I was working on here: https://github.com/ryanwinchester/tmi.ex/blob/v1/lib/tmi/chat/tags.ex#L47-L57
it uses :binary.split/2
which is the same in this case as String.split(&1, "=", parts: 2)
I'm working on some rewrites for the api, eventsub, and chat right now in separate libraries that will be dependencies of this this library hopefully in the next few months.
i'll see if i can merge the fix in v1
to main
soon
Should be fixed in b7ecee5 and released in v0.7.0
let me know if you have any other issues with it and I can re-open
In
TMI.parse_tags/1
, when the message being replied to has the equal sign in it, theEnum.map(&String.split(&1, "="))
part splits the value of "reply-parent-msg-body" into multiple strings. This results in the next|> Enum.into(%{}, &List.to_tuple/1)
failing.Ugly fix i did.