forked from an/flokati
markov.go: dont remove commas from messages
This commit is contained in:
parent
59bf94f173
commit
426511785e
|
@ -114,7 +114,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