Skip to content

Commit

Permalink
fix error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
socheres committed Dec 3, 2020
1 parent 01441cf commit 23ed77f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ubtue_Brill.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function postProcess(doc, item) {
if (item.tags)
item.tags = item.tags.map(i => i.textContent.trim());
let reviewEntry = text(doc, '.articlecategory');
if (reviewEntry.match(/book\sreview/i)) item.tags.push('Book Review');
if (reviewEntry && reviewEntry.match(/book\sreview/i)) item.tags.push('Book Review');
}

function invokeEmbeddedMetadataTranslator(doc, url) {
Expand Down

0 comments on commit 23ed77f

Please sign in to comment.