6 lines
123 B
Ruby
6 lines
123 B
Ruby
class String
|
|
def all_emoji?
|
|
self.match?(/\A(\p{Emoji_Presentation}|\p{Extended_Pictographic}|\uFE0F)+\z/u)
|
|
end
|
|
end
|