Skip to content

Commit

Permalink
fix: don't report on blank lines when bulk importing mentions
Browse files Browse the repository at this point in the history
  • Loading branch information
ewan-escience committed Sep 4, 2024
1 parent fa9ff1e commit bf92456
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ export async function validateInputList(doiList: string[], mentions: MentionItem

// create DOI list of valid entries eligible for futher processing
const validDois: string[] = doiList
// filter out lines with white space only
.filter(input => input.trim().length > 0)
// validate that input is of type="doi"
.map(input => extractSearchTerm(input))
// filter valid DOI type entries
Expand Down

0 comments on commit bf92456

Please sign in to comment.