mirror of
https://github.com/zotero/zotero.git
synced 2026-08-28 05:25:31 +00:00
transform menu: preserve cases in capitalize title (#5174)
Do not lowercase the entire title before capitalizing the first letter of each word to preserve abbreviations or spelling of unusual words (e.g. 3D or iPhone). Fixes: #5165
This commit is contained in:
parent
2bff0ea93f
commit
b8ec6eb75e
1 changed files with 1 additions and 1 deletions
|
|
@ -6853,7 +6853,7 @@ var ZoteroPane = new function()
|
|||
this.buildFieldTransformMenu = function ({ target, onTransform }) {
|
||||
let doc = target.ownerDocument;
|
||||
let value = target.value;
|
||||
let valueTitleCased = Zotero.Utilities.capitalizeTitle(value.toLowerCase(), true);
|
||||
let valueTitleCased = Zotero.Utilities.capitalizeTitle(value, true);
|
||||
let valueSentenceCased = Zotero.Utilities.sentenceCase(value);
|
||||
|
||||
let menupopup = doc.createXULElement('menupopup');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue