mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Fix a few issues with text emotes.
1. Fix the heart emote text overlay. 2. Added a missing text emote to the replacements. 3. Replace > with >
This commit is contained in:
parent
10b0466052
commit
3c8bb5e9bb
1 changed files with 6 additions and 5 deletions
|
@ -547,13 +547,14 @@ util::EmoteData EmoteManager::getTwitchEmoteById(long id, const QString &emoteNa
|
||||||
{
|
{
|
||||||
QString _emoteName = emoteName;
|
QString _emoteName = emoteName;
|
||||||
_emoteName.replace("<", "<");
|
_emoteName.replace("<", "<");
|
||||||
|
_emoteName.replace(">", ">");
|
||||||
|
|
||||||
static QMap<QString, QString> emoteNameReplacements{
|
static QMap<QString, QString> emoteNameReplacements{
|
||||||
{"[oO](_|\\.)[oO]", "o_O"}, {"\\>\\;\\(", ">("}, {"\\<\\;3", "<3"},
|
{"\\:-?\\)", ":-)"}, {"\\:-?\\(", ":-("}, {"\\:-?D", ":-D"},
|
||||||
{"\\:-?(o|O)", ":O"}, {"\\:-?(p|P)", ":P"}, {"\\:-?[\\\\/]", ":/"},
|
{"\\>\\;\\(", ">("}, {"\\:-?[z|Z|\\|]", ":-Z"}, {"[oO](_|\\.)[oO]", "O_o"},
|
||||||
{"\\:-?[z|Z|\\|]", ":z"}, {"\\:-?\\(", ":("}, {"\\:-?\\)", ":)"},
|
{"B-?\\)", "B-)"}, {"\\:-?(o|O)", ":-O"}, {"\\<\\;3", "<3"},
|
||||||
{"\\:-?D", ":D"}, {"\\;-?(p|P)", ";P"}, {"\\;-?\\)", ";)"},
|
{"\\:-?[\\\\/]", ":-/"}, {"\\;-?\\)", ";-)"}, {"\\:-?(p|P)", ":-P"},
|
||||||
{"R-?\\)", "R-)"},
|
{"\\;-?(p|P)", ";-P"}, {"R-?\\)", "R-)"},
|
||||||
};
|
};
|
||||||
|
|
||||||
auto it = emoteNameReplacements.find(_emoteName);
|
auto it = emoteNameReplacements.find(_emoteName);
|
||||||
|
|
Loading…
Reference in a new issue