Extract #all_emoji? to a Rails ext
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class String
|
||||
def all_emoji?
|
||||
self.match?(/\A(\p{Emoji_Presentation}|\p{Extended_Pictographic}|\uFE0F)+\z/u)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user