Skip to content

Commit

Permalink
Only consider references > 1 character a title.
Browse files Browse the repository at this point in the history
  • Loading branch information
dokterbob committed Jun 16, 2018
1 parent f6c0924 commit 80e8ac1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/server.js
Expand Up @@ -94,8 +94,8 @@ function get_title(result) {

// Try references
src.references.forEach(function (item) {
if (item.name && len(item.name) > 1) {
titles.push(item.name[0]);
if (item.name && item.name.length > 1) {
titles.push(item.name);
}
});

Expand Down

0 comments on commit 80e8ac1

Please sign in to comment.