提交 0fe2cba2 编写于 作者: S Sandeep Somavarapu

Fix #27749

上级 915e1eb8
......@@ -339,11 +339,11 @@ export function compareIgnoreCase(a: string, b: string): number {
}
if (isUpperAsciiLetter(codeA)) {
codeA -= 32;
codeA += 32;
}
if (isUpperAsciiLetter(codeB)) {
codeB -= 32;
codeB += 32;
}
const diff = codeA - codeB;
......
......@@ -80,6 +80,7 @@ suite('Strings', () => {
assertCompareIgnoreCase('aa', 'aA');
assertCompareIgnoreCase('a', 'aa');
assertCompareIgnoreCase('ab', 'aA');
assertCompareIgnoreCase('O', '/');
});
test('format', function () {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册