From 426511785e63e393bc6c6e5c971601ef21bfd3a6 Mon Sep 17 00:00:00 2001 From: Andreas Neue Date: Tue, 27 Aug 2019 15:16:13 +0200 Subject: [PATCH] markov.go: dont remove commas from messages --- modules/markov.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/markov.go b/modules/markov.go index 176f3ac..bcb497e 100644 --- a/modules/markov.go +++ b/modules/markov.go @@ -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) //reg := regexp.MustCompile("[^a-zA-Z0-9 ]+") //delText := reg.ReplaceAllString(text, "") return strings.ToLower(text)