dijs / infobox-parser

Parse Wikipedia Infoboxes
40 stars 18 forks source link

Fix error when blank name is not string #7

Closed goferito closed 7 years ago

goferito commented 7 years ago

Solves #6

goferito commented 7 years ago

This avoids the library to crash when the blank key is not a string. But the cool thing would be to fix the real reason on why we get to that situation.

To put you on track, they discovery was that with the Islamabad example, the blankName is an array for some properties: [ 'transl', 'IPA-hns' ].