FEATURE: Detect emoji from Emoji 14.0 (#16531)
This commit is contained in:
parent
3e4621c2cb
commit
3d62e335f7
File diff suppressed because one or more lines are too long
|
@ -1310,6 +1310,10 @@ describe PrettyText do
|
|||
it "correctly strips VARIATION SELECTOR-16 character (ufe0f) from some emojis" do
|
||||
expect(PrettyText.cook("❤️💣")).to match(/<img src[^>]+bomb[^>]+>/)
|
||||
end
|
||||
|
||||
it "replaces Emoji from Unicode 14.0" do
|
||||
expect(PrettyText.cook("🫣")).to match(/\:face_with_peeking_eye\:/)
|
||||
end
|
||||
end
|
||||
|
||||
describe "custom emoji" do
|
||||
|
|
Loading…
Reference in New Issue