lib/unicode/emoji.rb in unicode-emoji-0.9.1 vs lib/unicode/emoji.rb in unicode-emoji-0.9.2
- old
+ new
@@ -46,10 +46,10 @@
pack_and_join[EMOJI_PRESENTATION] + "(?!" + pack[TEXT_VARIATION_SELECTOR] + ")" + pack[EMOJI_VARIATION_SELECTOR] + "?",
]
text_presentation_sequence = \
join[
- pack_and_join[TEXT_PRESENTATION]+ "(?!" + pack[EMOJI_VARIATION_SELECTOR] + ")" + pack[TEXT_VARIATION_SELECTOR] + "?",
+ pack_and_join[TEXT_PRESENTATION]+ "(?!" + pack_and_join[EMOJI_MODIFIERS + [EMOJI_VARIATION_SELECTOR]] + ")" + pack[TEXT_VARIATION_SELECTOR] + "?",
pack_and_join[EMOJI_PRESENTATION] + pack[TEXT_VARIATION_SELECTOR]
]
emoji_component = \
pack_and_join[EMOJI_COMPONENT]