forked from an/flokati
Merge branch 'master' of git.dnix.de:an/flokati
This commit is contained in:
commit
140f9ed5bc
|
@ -133,7 +133,7 @@ func markovParseText(text string) string {
|
||||||
text = strings.Replace(text, "<", "<", -1)
|
text = strings.Replace(text, "<", "<", -1)
|
||||||
text = strings.Replace(text, ">", ">", -1)
|
text = strings.Replace(text, ">", ">", -1)
|
||||||
text = strings.Replace(text, "&", "&", -1)
|
text = strings.Replace(text, "&", "&", -1)
|
||||||
text = strings.Replace(text, ",", " ", -1)
|
//text = strings.Replace(text, ",", " ", -1)
|
||||||
//reg := regexp.MustCompile("[^a-zA-Z0-9 ]+")
|
//reg := regexp.MustCompile("[^a-zA-Z0-9 ]+")
|
||||||
//delText := reg.ReplaceAllString(text, "")
|
//delText := reg.ReplaceAllString(text, "")
|
||||||
return strings.ToLower(text)
|
return strings.ToLower(text)
|
||||||
|
|
Loading…
Reference in New Issue