unicode-emoji 4.0.3 → 4.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/README.md +1 -0
- data/data/generate_constants.rb +1 -0
- data/lib/unicode/emoji/constants.rb +1 -1
- data/lib/unicode/emoji/generated/regex_text_presentation.rb +8 -0
- data/lib/unicode/emoji/generated_native/regex_text_presentation.rb +8 -0
- data/lib/unicode/emoji.rb +1 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b08d6adaddfcbca3e754c9a52a0c0d5c772da86ca708affc9799ad113c5a005
|
4
|
+
data.tar.gz: e9f3817a215ef38b7933d69b4f0563d848a03f6a6b8728ecd06a74417fb5f8a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cedad0ceb5f1039be614bbca170cccc3f29e8f05bd7fc74714ed586ddf20edb5da25a6c8fd840acfb7dfbeb918ec6e2218cf427e5e510eb2406235253e32ad74
|
7
|
+
data.tar.gz: 4680b526737abd7491351ff87c5d323f3a6acf5996dffa4c2f4737e10bc8083da16928dbab34362b6014ae5a17863266eb456ab2d382f25350339eaf71a175bf
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -153,6 +153,7 @@ Gem Regex (`Unicode::Emoji`'s Emoji support level) | Native Regex (Ruby's Emoji
|
|
153
153
|
`Unicode::Emoji::REGEX_PROP_MODIFIER_BASE` | `/\p{EBase}/`
|
154
154
|
`Unicode::Emoji::REGEX_PROP_COMPONENT` | `/\p{EComp}/`
|
155
155
|
`Unicode::Emoji::REGEX_PROP_PRESENTATION` | `/\p{EPres}/`
|
156
|
+
`Unicode::Emoji::REGEX_TEXT_PRESENTATION` | `/[\p{Emoji}&&\P{EPres}]/`
|
156
157
|
|
157
158
|
#### Extended Pictographic Regex
|
158
159
|
|
data/data/generate_constants.rb
CHANGED
@@ -300,6 +300,7 @@ def compile(emoji_character:, emoji_modifier:, emoji_modifier_base:, emoji_compo
|
|
300
300
|
|
301
301
|
# Matches only basic single, textual emoji, ignores components like modifiers or simple digits
|
302
302
|
regexes[:REGEX_TEXT] = Regexp.compile(text_emoji)
|
303
|
+
regexes[:REGEX_TEXT_PRESENTATION] = Regexp.compile(text_presentation)
|
303
304
|
|
304
305
|
# Export regexes for Emoji properties so they can be used with newer Unicode than Ruby's
|
305
306
|
regexes[:REGEX_PROP_EMOJI] = Regexp.compile(emoji_character)
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# This file was generated by a script, please do not edit it by hand.
|
2
|
+
# See `$ rake generate_constants` and data/generate_constants.rb for more info.
|
3
|
+
|
4
|
+
module Unicode
|
5
|
+
module Emoji
|
6
|
+
REGEX_TEXT_PRESENTATION = /[\#\*0-9©®‼⁉™ℹ↔-↙↩↪⌨⏏⏭-⏯⏱⏲⏸-⏺Ⓜ▪▫▶◀◻◼☀-☄☎☑☘☝☠☢☣☦☪☮☯☸-☺♀♂♟♠♣♥♦♨♻♾⚒⚔-⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛰⛱⛴⛷-⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅-⬇〰〽㊗㊙🅰🅱🅾🅿🈂🈷🌡🌤-🌬🌶🍽🎖🎗🎙-🎛🎞🎟🏋-🏎🏔-🏟🏳🏵🏷🐿👁📽🕉🕊🕯🕰🕳-🕹🖇🖊-🖍🖐🖥🖨🖱🖲🖼🗂-🗄🗑-🗓🗜-🗞🗡🗣🗨🗯🗳🗺🛋🛍-🛏🛠-🛥🛩🛰🛳]/
|
7
|
+
end
|
8
|
+
end
|
data/lib/unicode/emoji.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unicode-emoji
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Lelis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: "[Emoji 16.0] Provides Unicode Emoji data and regexes, incorporating
|
14
14
|
the latest Unicode and Emoji standards. Includes a categorized list of recommended
|
@@ -47,6 +47,7 @@ files:
|
|
47
47
|
- lib/unicode/emoji/generated/regex_prop_modifier_base.rb
|
48
48
|
- lib/unicode/emoji/generated/regex_prop_presentation.rb
|
49
49
|
- lib/unicode/emoji/generated/regex_text.rb
|
50
|
+
- lib/unicode/emoji/generated/regex_text_presentation.rb
|
50
51
|
- lib/unicode/emoji/generated/regex_valid.rb
|
51
52
|
- lib/unicode/emoji/generated/regex_valid_include_text.rb
|
52
53
|
- lib/unicode/emoji/generated/regex_well_formed.rb
|
@@ -66,6 +67,7 @@ files:
|
|
66
67
|
- lib/unicode/emoji/generated_native/regex_prop_modifier_base.rb
|
67
68
|
- lib/unicode/emoji/generated_native/regex_prop_presentation.rb
|
68
69
|
- lib/unicode/emoji/generated_native/regex_text.rb
|
70
|
+
- lib/unicode/emoji/generated_native/regex_text_presentation.rb
|
69
71
|
- lib/unicode/emoji/generated_native/regex_valid.rb
|
70
72
|
- lib/unicode/emoji/generated_native/regex_valid_include_text.rb
|
71
73
|
- lib/unicode/emoji/generated_native/regex_well_formed.rb
|