From 72892dac1f1bd976a8ed32df103221cacbc767e4 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 16 Jan 2010 19:33:08 +0000 Subject: [PATCH] Frank's patch to add support for Cyrillic characters to Zotero.Utilities.cleanAuthor() -- now splits Cyrillic capital letters into separate initials --- chrome/content/zotero/xpcom/utilities.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/utilities.js b/chrome/content/zotero/xpcom/utilities.js index 7fd37d7afa..f9fb844824 100644 --- a/chrome/content/zotero/xpcom/utilities.js +++ b/chrome/content/zotero/xpcom/utilities.js @@ -40,7 +40,7 @@ Zotero.Utilities = function () {} * @return {Object} firstName, lastName, and creatorType */ Zotero.Utilities.prototype.cleanAuthor = function(author, type, useComma) { - const allCapsRe = /^[A-Z]+$/; + const allCapsRe = /^[A-Z\u0400-\u042f]+$/; if(typeof(author) != "string") { throw "cleanAuthor: author must be a string";