omnibox: make searching case insensitive

Fixes #3278.
This commit is contained in:
Matilde Park 2020-08-11 12:14:43 -04:00
parent aaa763214b
commit b3d31a05e0

View File

@ -104,7 +104,7 @@ export class Omnibox extends Component {
search(event) {
const { state } = this;
const query = event.target.value;
let query = event.target.value;
const results = this.initialResults();
this.setState({ query: query });
@ -120,6 +120,8 @@ export class Omnibox extends Component {
return;
}
query = query.toLowerCase();
['commands', 'subscriptions', 'groups', 'apps'].map((category) => {
const categoryIndex = state.index.get(category);
results.set(category,