Skip to content

It's 2022 and most websites don't trim spaces in inputs

1 pointexadecidiscuss
On HN

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();"

Comments

No comments yet.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.