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:
parent
7c9d03d7c3
commit
72892dac1f
1 changed files with 1 additions and 1 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Reference in a new issue