BibTeX Plugin: Force fieldnames to be lowercase

Fixes #5591
index-for-list-widget
jeremy@jermolene.com 2021-04-07 17:43:41 +01:00
rodzic e2d35751e2
commit 953fb9f237
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -39,7 +39,7 @@ exports["application/x-bibtex"] = function(text,fields) {
"bibtex-entry-type": entry.entryType "bibtex-entry-type": entry.entryType
}; };
$tw.utils.each(entry.entryTags,function(value,name) { $tw.utils.each(entry.entryTags,function(value,name) {
fields["bibtex-" + name] = value; fields["bibtex-" + name.toLowerCase()] = value;
}); });
results.push(fields); results.push(fields);
}); });