FEATURE: Detect emoji from Emoji 14.0 (#16531)

This commit is contained in:
Gerhard Schlager 2022-04-22 08:42:15 +02:00 committed by GitHub
parent 3e4621c2cb
commit 3d62e335f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -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