rategame-shared 1.1.429 → 1.1.430
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,7 +8,9 @@
|
|
|
8
8
|
* bold, italic, script, fraktur, double-struck, sans-serif,
|
|
9
9
|
* sans-serif italic, monospace, etc.
|
|
10
10
|
* - Halfwidth/Fullwidth Latin letters and digits (Type)
|
|
11
|
-
* - Enclosed Alphanumerics (Ⓐ, ⓐ, 🅐, 🅰️)
|
|
11
|
+
* - Enclosed Alphanumerics (Ⓐ, ⓐ, 🅐, 🅰️).
|
|
12
|
+
* Regional indicator symbols (U+1F1E6–U+1F1FF) are intentionally
|
|
13
|
+
* excluded so flag emojis like 🇺🇸 are allowed.
|
|
12
14
|
* - "Upside-down" / "turned" letters used by flip-text generators
|
|
13
15
|
* (⊥, ǝ, ɹ, ʇ, ʞ, ʎ, ɥ, ɐ, ɔ, ∀, ᗺ, ⅄, ...). Requires ≥2 of these
|
|
14
16
|
* to avoid false positives from a stray IPA character.
|
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
* bold, italic, script, fraktur, double-struck, sans-serif,
|
|
10
10
|
* sans-serif italic, monospace, etc.
|
|
11
11
|
* - Halfwidth/Fullwidth Latin letters and digits (Type)
|
|
12
|
-
* - Enclosed Alphanumerics (Ⓐ, ⓐ, 🅐, 🅰️)
|
|
12
|
+
* - Enclosed Alphanumerics (Ⓐ, ⓐ, 🅐, 🅰️).
|
|
13
|
+
* Regional indicator symbols (U+1F1E6–U+1F1FF) are intentionally
|
|
14
|
+
* excluded so flag emojis like 🇺🇸 are allowed.
|
|
13
15
|
* - "Upside-down" / "turned" letters used by flip-text generators
|
|
14
16
|
* (⊥, ǝ, ɹ, ʇ, ʞ, ʎ, ɥ, ɐ, ɔ, ∀, ᗺ, ⅄, ...). Requires ≥2 of these
|
|
15
17
|
* to avoid false positives from a stray IPA character.
|
|
@@ -72,9 +74,9 @@ function containsFullwidthAlphanumeric(text) {
|
|
|
72
74
|
function containsEnclosedAlphanumeric(text) {
|
|
73
75
|
for (const ch of text) {
|
|
74
76
|
const cp = ch.codePointAt(0);
|
|
75
|
-
if (cp >=
|
|
77
|
+
if (cp >= 0x24b6 && cp <= 0x24ff)
|
|
76
78
|
return true;
|
|
77
|
-
if (cp >=
|
|
79
|
+
if (cp >= 0x1f110 && cp <= 0x1f1e5)
|
|
78
80
|
return true;
|
|
79
81
|
}
|
|
80
82
|
return false;
|