We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b655089 commit eb1ec2fCopy full SHA for eb1ec2f
packages/shims/src/index.js
@@ -12,9 +12,19 @@
12
var forms = ["NFD", "NFC", "NFKD", "NFKC"];
13
for (var i = 0; i < forms.length; i++) {
14
try {
15
+ // Simple test that catches invalid normalization
16
if ("test".normalize(forms[i]) !== "test") {
17
throw new Error("failed to normalize");
18
}
19
+
20
+ // Some platforms seem to only fail when normalizing
21
+ // specific code planes, so add those here as they
22
+ // come up.
23
+ // "hangul"
24
+ const checks = [ "\ud55c\uae00" ];
25
+ for (var j = 0; j < checks.length; j++) {
26
+ checks[j].normalize(forms[i]);
27
+ }
28
} catch(error) {
29
missing.push(forms[i]);
30
0 commit comments