From fc3b2c35384ad7aeb9534a829303089f48dad72c Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Thu, 1 Mar 2012 14:19:04 -0500 Subject: [PATCH] Work around Chrome's buggy localeCompare function --- chrome/content/zotero/tools/testTranslators/translatorTester.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/tools/testTranslators/translatorTester.js b/chrome/content/zotero/tools/testTranslators/translatorTester.js index 117d9728f2..d6d9b36ffb 100644 --- a/chrome/content/zotero/tools/testTranslators/translatorTester.js +++ b/chrome/content/zotero/tools/testTranslators/translatorTester.js @@ -79,7 +79,7 @@ Zotero_TranslatorTesters = new function() { }; } else { strcmp = function (a, b) { - return a.localeCompare(b); + return a.toLowerCase().localeCompare(b.toLowerCase()); }; }