ckatzorke / howlongtobeat

A simple api for https://howlongtobeat.com/
Do What The F*ck You Want To Public License
338 stars 45 forks source link

The `search()` function strips all non-alphanumeric characters from the game's name #27

Open GamerKingFaiz opened 2 years ago

GamerKingFaiz commented 2 years ago

If you run hltbService.search('kingdom hearts'), you'll see the one of the results has the name Kingdom Hearts 3582 Days HD 15 Remix. If you run hltbService.detail(22490), you'll see the name is properly formatted Kingdom Hearts 358/2 Days - HD 1.5 Remix.

The search() function is also stripping accented characters. For example, if you run hltbService.search('pokemon'), it'll return entries with the name field as Pokmon (note the missing 'e'). The detail() function returns the names here properly.

The app I'm building relies on the search() function, so I'd greatly appreciate if you could fix search() stripping all non-alphanumeric characters.