Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
It's 2022 and most websites don't trim spaces in inputs
1 point by exadeci on May 3, 2022 | hide | past | favorite
How is it that when you paste an email, phone number, otp code or any other information in a form that doesn't support spaces, instead of trimming them it slices the end of the string or the validation fails.

How is it that all those websites doing js string manipulation on the fly can't do a simple:

"string.trim();"



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: