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.
1 parent cea1fba commit 359aa74Copy full SHA for 359aa74
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