Revisement 2 of Fixing emote text

Fixing the fix of the fix.
This commit is contained in:
Lajamerr Mittesdine 2018-06-04 18:09:41 -04:00 committed by fourtf
parent 4430f0b9a9
commit b2d049c782

View file

@ -550,11 +550,11 @@ util::EmoteData EmoteManager::getTwitchEmoteById(long id, const QString &emoteNa
_emoteName.replace(">", ">");
static QMap<QString, QString> emoteNameReplacements{
{"[oO](_|\\.)[oO]", "O_o"}, {"\\&gt\\;\\(", "&gt;("}, {"\\&lt\\;3", "&lt;3"},
{"\\:-?(o|O)", ":-O"}, {"\\:-?(p|P)", ":-P"}, {"\\:-?[\\\\/]", ":-/"},
{"\\:-?[z|Z|\\|]", ":-Z"}, {"\\:-?\\(", ":-("}, {"\\:-?\\)", ":-)"},
{"\\:-?D", ":-D"}, {"\\;-?(p|P)", ";-P"}, {"\\;-?\\)", ";-)"},
{"R-?\\)", "R-)"}, {"B-?\\)", "B-)"},
{"[oO](_|\\.)[oO]", "O_o"}, {"\\&gt\\;\\(", "&gt;("}, {"\\&lt\\;3", "&lt;3"},
{"\\:-?(o|O)", ":-O"}, {"\\:-?(p|P)", ":-P"}, {"\\:-?[\\\\/]", ":-/"},
{"\\:-?[z|Z|\\|]", ":-Z"}, {"\\:-?\\(", ":-("}, {"\\:-?\\)", ":-)"},
{"\\:-?D", ":-D"}, {"\\;-?(p|P)", ";-P"}, {"\\;-?\\)", ";-)"},
{"R-?\\)", "R-)"}, {"B-?\\)", "B-)"},
};
auto it = emoteNameReplacements.find(_emoteName);