Skip to content

Commit 1028894

Browse files
committed
Merge branch 'hotfix/icon-search-case-sensitive' of https://github.com/mbice/sp-dev-fx-controls-react into mbice-hotfix/icon-search-case-sensitive
2 parents a58630f + 359aa74 commit 1028894

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/FluentIconsService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class FluentIconsService {
2020

2121
public search = (query: string, startsWith?: boolean): string[] => {
2222
const lowerCasedQuery = query.toLowerCase();
23-
return this._iconNames.filter(name => startsWith === false ? name.toLowerCase().indexOf(lowerCasedQuery) !== -1 : name.toLowerCase().indexOf(query) === 0);
23+
return this._iconNames.filter(name => !startsWith ? name.toLowerCase().indexOf(lowerCasedQuery) !== -1 : name.toLowerCase().indexOf(lowerCasedQuery) === 0);
2424
}
2525
}
2626

0 commit comments

Comments
 (0)