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 b783da0 commit f6c0924
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/server.js
Expand Up @@ -94,7 +94,7 @@ function get_title(result) {

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

0 comments on commit f6c0924

Please sign in to comment.