mirror of
https://github.com/basecamp/once-campfire.git
synced 2025-12-03 21:49:57 +09:00
6 lines
122 B
Ruby
6 lines
122 B
Ruby
class String
|
|
def all_emoji?
|
|
self.match? /\A(\p{Emoji_Presentation}|\p{Extended_Pictographic}|\uFE0F)+\z/u
|
|
end
|
|
end
|