Skip to content

Commit

Permalink
fix: ensure value exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jun 5, 2019
1 parent c8c3bb8 commit 3132a92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/metascraper-helpers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ const url = (value, { url = '' } = {}) => {
}

const date = value => {
if (!value) return false
if (!isString(value)) return false

// remove whitespace for easier parsing
value = value.trim()
Expand Down

0 comments on commit 3132a92

Please sign in to comment.