Closed mazipan closed 11 months ago
Hi, could you assign this issue to me? I have installed the program and successfully ran it on my local, and I have verified the bug. I have not used Valibot before, but I will look into it. Could you also provide the error message you wish to display and where it should be displayed?
Seems you can use https://valibot.dev/api/includes/, it should include a space
char.
Pipes with current validation https://github.com/mazipan/tanyaaja/blob/master/src/modules/PublicQuestionPage/QuestionForm.tsx#L31-L33
Error message: Pertanyaan membutuhkan lebih dari satu kata
Just create a Draft Pull Request first to assign your self
Sure, will do! thanks
Describe the bug Some people just testing the TanyaAja by submitting "one word" question such as "test", "testing", etc. This kind of action should not allowed from the first place.
To Reproduce Steps to reproduce the behavior:
Expected behavior Question should not submitted, and show error message that we are not allowing this kind of action due to it's not seems as a honest question
Additional context Add new validation rule using
Valibot
to check "one word" question, if possible