fix: unescape Twitch emotes even more (#5786)

This commit is contained in:
nerix
2025-01-03 22:53:49 +01:00
committed by GitHub
parent 4f1a0ad5a6
commit 2212ec0bbb
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -6,6 +6,7 @@
- Bugfix: Make macos fonts look the same as v2.5.1. (#5775)
- Bugfix: Fixed 7TV usernames messing with Qt's HTML (#5780)
- Bugfix: Fixed BTTV emotes occasionally showing the wrong author. (#5783)
- Bugfix: Fixed some Twitch emotes containing HTML entities. (#5786)
- Dev: Hard-code Boost 1.86.0 in macos CI builders. (#5774)
## 2.5.2-beta.1
+2 -2
View File
@@ -426,8 +426,8 @@ QString TwitchEmotes::cleanUpEmoteCode(const QString &dirtyEmoteCode)
cleanCode.detach();
static QMap<QString, QString> emoteNameReplacements{
{"[oO](_|\\.)[oO]", "O_o"}, {"\\&gt\\;\\(", "&gt;("},
{"\\&lt\\;3", "&lt;3"}, {"\\:-?(o|O)", ":O"},
{"[oO](_|\\.)[oO]", "O_o"}, {"\\&gt\\;\\(", ">("},
{"\\&lt\\;3", "<3"}, {"\\:-?(o|O)", ":O"},
{"\\:-?(p|P)", ":P"}, {"\\:-?[\\\\/]", ":/"},
{"\\:-?[z|Z|\\|]", ":Z"}, {"\\:-?\\(", ":("},
{"\\:-?\\)", ":)"}, {"\\:-?D", ":D"},