Revisement of fixing text emotes

Fixing the order of text emotes.
This commit is contained in:
Lajamerr Mittesdine 2018-06-04 18:06:55 -04:00 committed by fourtf
parent 3c8bb5e9bb
commit 4430f0b9a9

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