Skip to content

Commit

Permalink
Update options.js
Browse files Browse the repository at this point in the history
  • Loading branch information
vHeemstra committed Jun 5, 2022
1 parent 2345810 commit 14766ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ function sanitizeAndStandardizeOptionsInput(options) {
options.poSources = [options.poSources];
}
options.poSources = options.poSources
.map(v => (typeof v === 'string' ? v.trim() : v))
.filter(v => (typeof v === 'string' && v.length > 0))
.map(v => v.trim())
.filter(v => (v.length > 0))
;
}

Expand Down

0 comments on commit 14766ef

Please sign in to comment.