Closed Kardbord closed 2 years ago
The regex to strip punctuation at the end of a /what-are-the-odds event is a little too overzealous; it also removes the closing angle-bracket (>) from user mentions.
/what-are-the-odds
Problem lines are https://github.com/TannerKvarfordt/Kard-bot/blob/8681e729cc34f97c71a0eb0675b258eb2b9beed0/kardbot/whataretheodds.go#L17 https://github.com/TannerKvarfordt/Kard-bot/blob/8681e729cc34f97c71a0eb0675b258eb2b9beed0/kardbot/utils.go#L99
The regex to strip punctuation at the end of a
/what-are-the-odds
event is a little too overzealous; it also removes the closing angle-bracket (>) from user mentions.Problem lines are https://github.com/TannerKvarfordt/Kard-bot/blob/8681e729cc34f97c71a0eb0675b258eb2b9beed0/kardbot/whataretheodds.go#L17 https://github.com/TannerKvarfordt/Kard-bot/blob/8681e729cc34f97c71a0eb0675b258eb2b9beed0/kardbot/utils.go#L99