WeightKeyword2
This commit is contained in:
parent
84bd7614b8
commit
41cca94393
2
util.go
2
util.go
|
@ -145,6 +145,8 @@ func Reverse(s interface{}) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func WeightKeyword(keywords string) string {
|
func WeightKeyword(keywords string) string {
|
||||||
|
keywords = strings.ReplaceAll(keywords, ",", ",")
|
||||||
|
keywords = strings.ReplaceAll(keywords, ":", ":")
|
||||||
fields := strings.Split(keywords, ",")
|
fields := strings.Split(keywords, ",")
|
||||||
if len(fields) == 1 {
|
if len(fields) == 1 {
|
||||||
return keywords
|
return keywords
|
||||||
|
|
Loading…
Reference in New Issue