mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-11-09 10:28:32 +00:00
@@ -195,7 +195,12 @@ export class BoardsServiceClientImpl implements BoardsServiceClient, FrontendApp
|
|||||||
return compareAnything(leftLabel, rightLabel, lookFor);
|
return compareAnything(leftLabel, rightLabel, lookFor);
|
||||||
}
|
}
|
||||||
const normalizedQuery = query.toLowerCase();
|
const normalizedQuery = query.toLowerCase();
|
||||||
return boards.filter(coresFilter).map(toMatch).sort((left, right) => compareEntries(left, right, normalizedQuery)).map(({ board }) => board);
|
return boards
|
||||||
|
.filter(coresFilter)
|
||||||
|
.map(toMatch)
|
||||||
|
.filter(({ matches }) => !!matches)
|
||||||
|
.sort((left, right) => compareEntries(left, right, normalizedQuery))
|
||||||
|
.map(({ board }) => board);
|
||||||
}
|
}
|
||||||
|
|
||||||
get boardsConfig(): BoardsConfig.Config {
|
get boardsConfig(): BoardsConfig.Config {
|
||||||
|
|||||||
Reference in New Issue
Block a user