Titles that were entirely numeric would cause Zotero to fail on "Loading items list..."

This commit is contained in:
Dan Stillman 2008-02-19 06:27:51 +00:00
parent ee3f8ee47f
commit 24cca6cff3

View File

@ -3070,6 +3070,9 @@ Zotero.Items = new function(){
function getSortTitle(title) {
if (typeof title == 'number') {
return title + '';
}
return title.replace(/^[\[\'\"](.*)[\'\"\]]?$/, '$1')
}