Skip to content

Commit

Permalink
cast to lowercase before comparing (mattermost#7769)
Browse files Browse the repository at this point in the history
Co-authored-by: Mattermod <[email protected]>
  • Loading branch information
mickmister and mattermod committed Apr 14, 2021
1 parent 3d224e9 commit c9fe878
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/suggestion/menu_action_provider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default class MenuActionProvider extends Provider {
}

async filterOptions(prefix, resultsCallback) {
const filteredOptions = this.options.filter((option) => option.text.toLowerCase().indexOf(prefix) >= 0);
const filteredOptions = this.options.filter((option) => option.text.toLowerCase().indexOf(prefix.toLowerCase()) >= 0);
const terms = filteredOptions.map((option) => option.text);

resultsCallback({
Expand Down

0 comments on commit c9fe878

Please sign in to comment.