Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
fix(component): convert search term to lower case
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexpeschel committed Dec 19, 2017
1 parent b1f6be4 commit 6d38ede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/component/container/pattern_list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class PatternListContainer extends React.Component<PatternListContainerPr
const result: PatternListContainerItemProps[] = [];

listItem.map(item => {
if (item.value.indexOf(term) !== -1 && !item.children) {
if (item.value.indexOf(term.toLowerCase()) !== -1 && !item.children) {
result.push(item);
} else if (item.children) {
const folder = { value: item.value, children: [] };
Expand Down

0 comments on commit 6d38ede

Please sign in to comment.