wikimedia / html-metadata

MetaData html scraper and parser for Node.js (supports Promises and callback style)
MIT License
138 stars 44 forks source link

Prevent non-og tags from being added #17

Closed mvolz closed 9 years ago

mvolz commented 9 years ago

Non open graph tags were being added in some cases, because indexOf returns -1 for items not in the list and code was assuming a non-number value.

Added case in test for this in test/index.js as this was where issue was initially detected.

Partially addresses issue #16.