Tintef / react-google-places-autocomplete

React Google Places Autocomplete input -- fully customizable
https://tintef.github.io/react-google-places-autocomplete
MIT License
378 stars 162 forks source link

How to filter the suggested results that has special characters in it? #354

Closed aranderia15 closed 1 month ago

aranderia15 commented 2 months ago

Hello, I am using the library in our application to get the address suggestions based on the user input. We have a requirement to not allow the user enter special characters in the fields. From the code perspective, it is something we can control but I was wondering if the library has any option available which filters the result by removing the address with special characters in it while sending back the response. Please see the screenshot below on the special characters example:

The user searches for Via Madrid and I would like the response to ignore the suggestions with the fancy i.

Screenshot 2024-09-17 at 10 37 40 AM

Thanks!