I am trying to make a command like !find England Michanel to return list of people with a name Michael whose live in England.
let [country, name] = input.split(" ").slice(1);
This gives me exact data I want. But the problem is when the county name is more than one word like United States and also for person names like John Doe. If I apply my current logic will be like; country = United, name = States and will ignore the rest after that.
Is ther any way to retrieve country name person name with spaces correctly? Thanks
united-states) or underscores (united_states). Beyond that, you'll either have to do some kind of fuzzy searching, or rely on a search provider like Solr.inputlook like? do you have control over it? please give an example ofinput"country name"why are you using.slice(1)and why are you using!before your command/function name?