Skip to content

Commit

Permalink
Remove ^ from discord messages
Browse files Browse the repository at this point in the history
  • Loading branch information
xackery committed Feb 27, 2024
1 parent 0030558 commit c8dfe42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions discord/discord.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ func sanitize(data string) string {
data = strings.Replace(data, `%`, "&PCT;", -1)
re := regexp.MustCompile("[^\x00-\x7F]+")
data = re.ReplaceAllString(data, "")
data = strings.ReplaceAll(data, "^", "")
return data
}

Expand Down

0 comments on commit c8dfe42

Please sign in to comment.