Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Commit

Permalink
Remove escape cahracter from quoted backticks
Browse files Browse the repository at this point in the history
  • Loading branch information
Bios-Marcel committed Oct 12, 2019
1 parent 85752e7 commit 125974b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/chatview.go
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,9 @@ func (chatView *ChatView) formatDefaultMessageText(message *discordgo.Message) s
messageText = strings.Replace(messageText, values[2], formattedCode, 1)
}

messageText = strings.Replace(strings.Replace(parseBoldAndUnderline(messageText), "\\*", "*", -1), "\\_", "_", -1)
messageText = strings.
NewReplacer("\\*", "*", "\\_", "_", "\\`", "`").
Replace(parseBoldAndUnderline(messageText))

shouldShow, contains := chatView.showSpoilerContent[message.ID]
if !contains || !shouldShow {
Expand Down

0 comments on commit 125974b

Please sign in to comment.