mirror of
https://github.com/zu1k/nali.git
synced 2025-01-22 13:19:02 +08:00
fix: Trim result
This commit is contained in:
parent
17839a6974
commit
e4b0253ec6
@ -3,6 +3,7 @@ package db
|
||||
import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/zu1k/nali/internal/constant"
|
||||
"github.com/zu1k/nali/pkg/cdn"
|
||||
@ -105,5 +106,7 @@ func Find(typ dbif.QueryType, query string) string {
|
||||
if err != nil {
|
||||
return ""
|
||||
}
|
||||
return result.String()
|
||||
r := strings.Trim(result.String(), " ")
|
||||
queryCache[query] = r
|
||||
return r
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user