Synced unorm in shims to most recent version.
This commit is contained in:
parent
0234cfbbef
commit
bdccf7b8d3
16
packages/shims/dist/index.js
vendored
16
packages/shims/dist/index.js
vendored
@ -649,9 +649,18 @@ UChar.udata={
|
||||
unorm.shimApplied = false;
|
||||
|
||||
if (!String.prototype.normalize) {
|
||||
String.prototype.normalize = function(form) {
|
||||
Object.defineProperty(String.prototype, "normalize", {
|
||||
enumerable: false,
|
||||
configurable: true,
|
||||
writable: true,
|
||||
value: function normalize (/*form*/) {
|
||||
|
||||
var str = "" + this;
|
||||
form = form === undefined ? "NFC" : form;
|
||||
var form = arguments[0] === undefined ? "NFC" : arguments[0];
|
||||
|
||||
if (this === null || this === undefined) {
|
||||
throw new TypeError("Cannot call method on " + Object.prototype.toString.call(this));
|
||||
}
|
||||
|
||||
if (form === "NFC") {
|
||||
return unorm.nfc(str);
|
||||
@ -664,7 +673,8 @@ UChar.udata={
|
||||
} else {
|
||||
throw new RangeError("Invalid normalization form: " + form);
|
||||
}
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
unorm.shimApplied = true;
|
||||
}
|
||||
|
2
packages/shims/dist/index.min.js
vendored
2
packages/shims/dist/index.min.js
vendored
File diff suppressed because one or more lines are too long
@ -27,7 +27,7 @@
|
||||
"dist": "browserify ./src/index.js -o ./dist/index.js && uglifyjs --compress --mangle --output ./dist/index.min.js -- ./dist/index.js",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"tarballHash": "0xe67b67d07dc853542e750860c5e34b9f59f5c387c5b5043aa1ff639858668e8f",
|
||||
"tarballHash": "0xc6ad91462bf8be9bb6077a5e22f43ff35e82a815dbd91bbd6d709c945f8e03e2",
|
||||
"types": "./lib/index.d.ts",
|
||||
"version": "5.0.5"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user