commit fc3b2c35384ad7aeb9534a829303089f48dad72c parent 61c0f974c076aeec6eaabc43647f950c1c2e8434 Author: Simon Kornblith <simon@simonster.com> Date: Thu, 1 Mar 2012 14:19:04 -0500 Work around Chrome's buggy localeCompare function Diffstat:
| M | 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 @@ -79,7 +79,7 @@ Zotero_TranslatorTesters = new function() { }; } else { strcmp = function (a, b) { - return a.localeCompare(b); + return a.toLowerCase().localeCompare(b.toLowerCase()); }; }