mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 16:38:05 -06:00
Update version
This commit is contained in:
parent
3a094e7e73
commit
d64c98cec7
@ -2,7 +2,7 @@
|
||||
"name": "typescript",
|
||||
"author": "Microsoft Corp.",
|
||||
"homepage": "http://typescriptlang.org/",
|
||||
"version": "2.0.9",
|
||||
"version": "2.0.10",
|
||||
"license": "Apache-2.0",
|
||||
"description": "TypeScript is a language for application scale JavaScript development",
|
||||
"keywords": [
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
/* @internal */
|
||||
namespace ts {
|
||||
|
||||
export const version = "2.0.9";
|
||||
export const version = "2.0.10";
|
||||
|
||||
/**
|
||||
* Ternary values are defined such that
|
||||
@ -717,7 +717,7 @@ namespace ts {
|
||||
if (b === undefined) return Comparison.GreaterThan;
|
||||
if (ignoreCase) {
|
||||
if (collator && String.prototype.localeCompare) {
|
||||
// accent means a ≠ b, a ≠ á, a = A
|
||||
// accent means a ? b, a ? a´, a = A
|
||||
const result = a.localeCompare(b, /*locales*/ undefined, { usage: "sort", sensitivity: "accent" });
|
||||
return result < 0 ? Comparison.LessThan : result > 0 ? Comparison.GreaterThan : Comparison.EqualTo;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user