We have the following regex set on a field: ^[0-9a-zA-Z]{4,20}$
If user types some text and then puts in a bunch of spaces the pre validation does not show the error. Though if they put a few char, space, more char, the pre validation does work.
No Error: "value "
Error: "value value value"
But when the form is submitted with spaces at the end the backend validation does show that value doesn't match regex.
Has anyone else had this happen/know how to fix it? Or is this a bug?