mattcg / language-tags

A Swiss Army knife for language tags.
64 stars 13 forks source link

.search('ar') throws an error #1

Closed MartijnR closed 9 years ago

MartijnR commented 9 years ago

By coincidence, I noticed that tags.search('ar') throws an error:

Error: Non-existent subtag 'aa' of type 'language'.

I'd expect an empty array as result.

mattcg commented 9 years ago

Wow, first ever issue! Thanks for reporting this. Fixed.

MartijnR commented 9 years ago

Wow, so quick! Thanks a lot!