Extract #all_emoji? to a Rails ext

This commit is contained in:
Stanko K.R.
2025-08-11 17:33:24 +02:00
parent 67c9bdc3d9
commit c95e8678a9
4 changed files with 19 additions and 6 deletions
+5
View File
@@ -0,0 +1,5 @@
class String
def all_emoji?
self.match?(/\A(\p{Emoji_Presentation}|\p{Extended_Pictographic}|\uFE0F)+\z/u)
end
end