kellnerd / harmony

Music Metadata Aggregator and MusicBrainz Importer
MIT License
40 stars 6 forks source link

fix(web): do not fail parsing country codes with surrounding spaces #18

Closed phw closed 3 months ago

phw commented 3 months ago

If as a user you entered "GB, US" instead of "GB,US" this caused an error "' US' is not a valid ISO 3166-1 alpha-2 country code with two letters".

Be more tolerant with the input and trim the values after splitting by comma.