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
|
@ -40,7 +40,7 @@ Zotero.Utilities = function () {}
|
||||||
* @return {Object} firstName, lastName, and creatorType
|
* @return {Object} firstName, lastName, and creatorType
|
||||||
*/
|
*/
|
||||||
Zotero.Utilities.prototype.cleanAuthor = function(author, type, useComma) {
|
Zotero.Utilities.prototype.cleanAuthor = function(author, type, useComma) {
|
||||||
const allCapsRe = /^[A-Z]+$/;
|
const allCapsRe = /^[A-Z\u0400-\u042f]+$/;
|
||||||
|
|
||||||
if(typeof(author) != "string") {
|
if(typeof(author) != "string") {
|
||||||
throw "cleanAuthor: author must be a string";
|
throw "cleanAuthor: author must be a string";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user