alphagov / govuk-country-and-territory-autocomplete

An autocomplete widget that uses data from Country and Territory Register.
https://alphagov.github.io/govuk-country-and-territory-autocomplete/examples/
MIT License
36 stars 18 forks source link

Commas break matching #58

Open nubz opened 5 years ago

nubz commented 5 years ago

When a country name has commas in it then it is not possible to enter that country name into the text input and find a match, however omitting commas will find the match - this will not be clear to users who may just paste in, or quickly type a country name and find no matches, for example "Pitcairn, Henderson, Ducie and Oeno Islands" will not be found if entered but "Pitcairn Henderson Ducie and Oeno Islands" will.