mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 1801679 - Replace some wrong smileys and add 'angry' smiley in mozTXTToHTMLConv.cpp. r=necko-reviewers,valentin
Patch by Landon Messer <ljcool2006@gmail.com>, f+ thomas8. Differential Revision: https://phabricator.services.mozilla.com/D163150
This commit is contained in:
parent
46cdc01d7b
commit
b48f517562
@ -786,11 +786,19 @@ bool mozTXTToHTMLConv::GlyphHit(const char16_t* aInString, int32_t aInLength,
|
||||
outputHTML, glyphTextLen) ||
|
||||
|
||||
SmilyHit(aInString, aInLength, bArg, ">:o",
|
||||
u"😄"_ns, // yell, U+1F620
|
||||
u"🤬"_ns, // swearing, U+1F92C
|
||||
outputHTML, glyphTextLen) ||
|
||||
|
||||
SmilyHit(aInString, aInLength, bArg, ">:-o",
|
||||
u"😠"_ns, // yell, U+1F620
|
||||
u"🤬"_ns, // swearing, U+1F92C
|
||||
outputHTML, glyphTextLen) ||
|
||||
|
||||
SmilyHit(aInString, aInLength, bArg, ">:(",
|
||||
u"😠"_ns, // angry, U+1F620
|
||||
outputHTML, glyphTextLen) ||
|
||||
|
||||
SmilyHit(aInString, aInLength, bArg, ">:-(",
|
||||
u"😠"_ns, // angry, U+1F620
|
||||
outputHTML, glyphTextLen) ||
|
||||
|
||||
SmilyHit(aInString, aInLength, bArg, "8-)",
|
||||
@ -814,7 +822,7 @@ bool mozTXTToHTMLConv::GlyphHit(const char16_t* aInString, int32_t aInLength,
|
||||
outputHTML, glyphTextLen) ||
|
||||
|
||||
SmilyHit(aInString, aInLength, bArg, ":-X",
|
||||
u"😷"_ns, // sealed, U+1F637
|
||||
u"🤐"_ns, // sealed, U+1F910
|
||||
outputHTML, glyphTextLen))) {
|
||||
aOutputString.Append(outputHTML);
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user