Skip to content

Commit 359aa74

Browse files
committed
Fix case sensitive fluent icon search service
1 parent cea1fba commit 359aa74

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)