Ignore leading comma in citation dialog search. Closes #1839

This commit is contained in:
Adomas Venčkauskas 2020-06-22 10:00:18 +03:00
parent 1ec2615eee
commit 6bbb7ddc09

View file

@ -301,6 +301,7 @@ var Zotero_QuickFormat = new function () {
var s = new Zotero.Search();
str = str.replace(/ (?:&|and) /g, " ", "g");
str = str.replace(/^,/, '');
if(charRe.test(str)) {
Zotero.debug("QuickFormat: QuickSearch: "+str);
// Exclude feeds