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