Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Koffiepoeder
· 7mo ago · 0 comments
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?
Comments
[–]
meodai
7mo ago
oh right, good catch
[–]
meodai
7mo ago
fixed