We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a58630f + 359aa74 commit 1028894Copy full SHA for 1028894
src/services/FluentIconsService.ts
@@ -20,7 +20,7 @@ export class FluentIconsService {
20
21
public search = (query: string, startsWith?: boolean): string[] => {
22
const lowerCasedQuery = query.toLowerCase();
23
- return this._iconNames.filter(name => startsWith === false ? name.toLowerCase().indexOf(lowerCasedQuery) !== -1 : name.toLowerCase().indexOf(query) === 0);
+ return this._iconNames.filter(name => !startsWith ? name.toLowerCase().indexOf(lowerCasedQuery) !== -1 : name.toLowerCase().indexOf(lowerCasedQuery) === 0);
24
}
25
26
0 commit comments