mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-14 11:17:19 +03:00
fix: allow searches with 2 chars. closes #65
This commit is contained in:
parent
400fa65326
commit
5a95feeedc
@ -33,7 +33,7 @@ func (r sqlRepository) index(id string, text string) error {
|
||||
|
||||
func (r sqlRepository) doSearch(q string, offset, size int, results interface{}, orderBys ...string) error {
|
||||
q = strings.TrimSpace(sanitize.Accents(strings.ToLower(strings.TrimSuffix(q, "*"))))
|
||||
if len(q) <= 2 {
|
||||
if len(q) < 2 {
|
||||
return nil
|
||||
}
|
||||
sq := Select("*").From(r.tableName)
|
||||
|
Loading…
x
Reference in New Issue
Block a user