bitwarden / jslib

Common code referenced across Bitwarden JavaScript projects.
https://bitwarden.com
GNU General Public License v3.0
134 stars 138 forks source link

[PS-136] stripped off accented characters from search field for browser client #812

Closed gbubemismith closed 2 years ago

gbubemismith commented 2 years ago

Type of change

Objective

Code changes

Before you submit

gbubemismith commented 2 years ago

Is there any reason why we're not normalizing the search string in SearchService itself? Ideally this should be handled by the service, so that you don't have to repeat the normalization logic everywhere that it's called from.

Also, don't forget to handle searching Sends as well. If you do it in SearchService, then you could have a single private method, normalizeSearchQuery, which is called from both SearchCiphers and SearchSends.

This has been added.