Skip to content

Commit 1f28f25

Browse files
author
Akos Kitta
committed
GH-612: core search can match Platform#ID too.
Closes #612. Signed-off-by: Akos Kitta <[email protected]>
1 parent cd2fa29 commit 1f28f25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: commands/core/search.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func PlatformSearch(instanceID int32, searchArgs string, allVersions bool) (*rpc
5555
}
5656

5757
// platform has a valid release, check if it matches the search arguments
58-
if match(platform.Name, searchArgs) || match(platform.Architecture, searchArgs) {
58+
if match(platform.Name, searchArgs) || match(platform.Architecture, searchArgs) || match(platform.String(), searchArgs) {
5959
if allVersions {
6060
res = append(res, platform.GetAllReleases()...)
6161
} else {

0 commit comments

Comments
 (0)