Trim search keyword in User Search / Admin Panel

This is a tiny improvement proposal.

If you search a user by an email with no trailing spaces, it works just fine:

However, it finds nothing if a space is added:

A simple improvement would be to trim user input before carrying the search.

Trailing spaces / tabs / etc may easily be inserted when copypasting an email address from somewhere.

2 Likes

Just pushed a fix :banana:

https://github.com/discourse/discourse/commit/8f68a95e56c7c6b42d4508e8fd08a44de2b41ba0

4 Likes

This topic was automatically closed after 12 hours. New replies are no longer allowed.