commit 72892dac1f1bd976a8ed32df103221cacbc767e4
parent 7c9d03d7c37a80a266a8a688079bc315a082a652
Author: Dan Stillman <dstillman@zotero.org>
Date: Sat, 16 Jan 2010 19:33:08 +0000
Frank's patch to add support for Cyrillic characters to Zotero.Utilities.cleanAuthor() -- now splits Cyrillic capital letters into separate initials
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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";