Frank's patch to add support for Cyrillic characters to Zotero.Utilities.cleanAuthor() -- now splits Cyrillic capital letters into separate initials

This commit is contained in:
Dan Stillman 2010-01-16 19:33:08 +00:00
parent 7c9d03d7c3
commit 72892dac1f

View file

@ -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";