1
0
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:
zu1k 2021-10-26 13:23:05 +08:00
parent 17839a6974
commit e4b0253ec6

View File

@ -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
}