FIX: do not replace smiling_face by slight_smile (#11412)

This commit is contained in:
Joffrey JAFFEUX
2020-12-06 18:28:39 +01:00
committed by GitHub
parent 161e92be61
commit 54519a2976
2 changed files with 1 additions and 2 deletions

View File

@@ -173,7 +173,6 @@ class Emoji
end
replacements["\u{2639}"] = 'frowning'
replacements["\u{263A}"] = 'slight_smile'
replacements["\u{263B}"] = 'slight_smile'
replacements["\u{2661}"] = 'heart'
replacements["\u{2665}"] = 'heart'

View File

@@ -1037,7 +1037,7 @@ describe PrettyText do
end
it "replaces some glyphs that are not in the emoji range" do
expect(PrettyText.cook("")).to match(/\:slight_smile\:/)
expect(PrettyText.cook("")).to match(/\:relaxed\:/)
end
it "replaces digits" do