🎨 The marketplace supports searching https://github.com/siyuan-note/siyuan/issues/8173
This commit is contained in:
parent
7f16d32123
commit
7654f25a5b
1 changed files with 4 additions and 0 deletions
|
@ -346,6 +346,10 @@ func UninstallBazaarTemplate(templateName string) error {
|
|||
}
|
||||
|
||||
func matchPackage(keywords []string, pkg *bazaar.Package) bool {
|
||||
if 1 > len(keywords) {
|
||||
return true
|
||||
}
|
||||
|
||||
for _, keyword := range keywords {
|
||||
if strings.Contains(strings.ToLower(pkg.DisplayName.Default), keyword) ||
|
||||
strings.Contains(strings.ToLower(pkg.DisplayName.ZhCN), keyword) ||
|
||||
|
|
Loading…
Add table
Reference in a new issue