Skip to content

Commit

Permalink
Update lens_converter.js
Browse files Browse the repository at this point in the history
Check if suffix is empty; fixes elifesciences#155.
  • Loading branch information
pkra committed Mar 23, 2016
1 parent cc42407 commit efffa9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion converter/lens_converter.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ NlmToLensConverter.Prototype = function() {

if (givenNamesEl) names.push(givenNamesEl.textContent);
if (surnameEl) names.push(surnameEl.textContent);
if (suffix) return [names.join(" "), suffix.textContent].join(", ");
if (suffix && !(suffix.textContent.trim() === "")) return [names.join(" "), suffix.textContent].join(", ");

return names.join(" ");
};
Expand Down

0 comments on commit efffa9b

Please sign in to comment.