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(">", ">"); _emoteName.replace(">", ">");
static QMap<QString, QString> emoteNameReplacements{ static QMap<QString, QString> emoteNameReplacements{
{"[oO](_|\\.)[oO]", "O_o"}, {"\\&gt\\;\\(", "&gt;("}, {"\\&lt\\;3", "&lt;3"}, {"[oO](_|\\.)[oO]", "O_o"}, {"\\&gt\\;\\(", "&gt;("}, {"\\&lt\\;3", "&lt;3"},
{"\\:-?(o|O)", ":-O"}, {"\\:-?(p|P)", ":-P"}, {"\\:-?[\\\\/]", ":-/"}, {"\\:-?(o|O)", ":-O"}, {"\\:-?(p|P)", ":-P"}, {"\\:-?[\\\\/]", ":-/"},
{"\\:-?[z|Z|\\|]", ":-Z"}, {"\\:-?\\(", ":-("}, {"\\:-?\\)", ":-)"}, {"\\:-?[z|Z|\\|]", ":-Z"}, {"\\:-?\\(", ":-("}, {"\\:-?\\)", ":-)"},
{"\\:-?D", ":-D"}, {"\\;-?(p|P)", ";-P"}, {"\\;-?\\)", ";-)"}, {"\\:-?D", ":-D"}, {"\\;-?(p|P)", ";-P"}, {"\\;-?\\)", ";-)"},
{"R-?\\)", "R-)"}, {"B-?\\)", "B-)"}, {"R-?\\)", "R-)"}, {"B-?\\)", "B-)"},
}; };
auto it = emoteNameReplacements.find(_emoteName); auto it = emoteNameReplacements.find(_emoteName);