fabian-hiller / valibot

The modular and type safe schema library for validating structural data 🤖
https://valibot.dev
MIT License
6k stars 186 forks source link

Fix doc search error when the first char is a special char #651

Closed TristanShz closed 3 months ago

TristanShz commented 3 months ago

Hi, I fixed the problem related to issue #499, let me know if you think there is a better way to do it.

fabian-hiller commented 3 months ago

Thank you so much! I will review it tomorrow.

fabian-hiller commented 3 months ago

Thank you for this PR. It helped me figure out what was wrong. Your code fixed but did not solve the problem. The main problem was that Algolia was returning search results that did not make sense when special characters were entered, and that we were not resetting the error state when the input changed. I solved both problems.