uuid-ncname 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/uuid/ncname.rb +4 -4
- data/lib/uuid/ncname/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d17bfbafda1f25ed22fe1b314af7d9add89e66caa92a5f859fe399b81b4a1c63
|
4
|
+
data.tar.gz: 38372398d6460a72212023f6904c2eef6b5785461169f8ff7e1ff4248aa08ea2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2f4d687ce200545784b6cd57417d182701faa805bb11e963184418284bc134b02e191a099026a63183aad8f089fd9eb140331fcd3915f33a1ea5e596e97836a
|
7
|
+
data.tar.gz: dcbd3afa99943709d07892fff109659dc567fbb3c7ab285cd5b9281894cb0477d984fd9ca0de12b778bd4d7125643299ce9ac61047fbd3a22ce35a91bb774722
|
data/lib/uuid/ncname.rb
CHANGED
@@ -11,10 +11,10 @@ module UUID::NCName
|
|
11
11
|
|
12
12
|
MATCH = /^([A-Pa-p]) # zero-width boundary and version bookend
|
13
13
|
([2-7A-Za-z]{24}|[-0-9A-Z_a-z]{20}| # base32 and 64
|
14
|
-
(?:[1-9A-HJ-NP-Za-z]{15}_{6}|[1-9A-HJ-NP-Za-z]{16}_{5}|
|
15
|
-
[1-9A-HJ-NP-Za-z]{17}_{4}|[1-9A-HJ-NP-Za-z]{18}___|
|
16
|
-
[1-9A-HJ-NP-Za-z]{19}__|[1-9A-HJ-NP-Za-z]{20}_|
|
17
|
-
[1-9A-HJ-NP-Za-z]{21})) # base58 with underscore pad
|
14
|
+
(?:[1-9A-HJ-NP-Za-km-z]{15}_{6}|[1-9A-HJ-NP-Za-km-z]{16}_{5}|
|
15
|
+
[1-9A-HJ-NP-Za-km-z]{17}_{4}|[1-9A-HJ-NP-Za-km-z]{18}___|
|
16
|
+
[1-9A-HJ-NP-Za-km-z]{19}__|[1-9A-HJ-NP-Za-km-z]{20}_|
|
17
|
+
[1-9A-HJ-NP-Za-km-z]{21})) # base58 with underscore pad
|
18
18
|
([-0-9A-Z_a-z])$/x.freeze # lax variant bookend and zero-width boundary
|
19
19
|
|
20
20
|
ENCODE = {
|
data/lib/uuid/ncname/version.rb
CHANGED