Skip to content

Commit

Permalink
Trim whitespace on filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jul 4, 2010
1 parent 778ffd5 commit fa8908a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.html
Expand Up @@ -135,6 +135,7 @@
filter = widget.val();

filter = filter.toLowerCase();
filter = filter.replace(/^\s*|\s*$/g, '');

if (profile.filter == filter)
return; // fast path: nothing's changed.
Expand Down

0 comments on commit fa8908a

Please sign in to comment.