logoalt Hacker News

Koffiepoedertoday at 7:01 AM1 replyview on HN

I understand trimming input fields is typically a useful default, but in this case this prevents me from searching for a space. So maybe it'd be worthwhile to add a `if (trim(str)=="") return str` exception or something similar?


Replies

meodaitoday at 7:06 AM

oh right, good catch

show 1 reply