Fixed canonical gofmt style in gitter.go

This commit is contained in:
chotaire
2019-04-17 03:55:57 +02:00
parent f01193ffb1
commit e79cf7bead

View File

@@ -99,7 +99,7 @@ func (b *Bgitter) Send(msg config.Message) (string, error) {
b.Log.Errorf("Could not find roomID for %v", msg.Channel)
return "", nil
}
// Strip IRC colors sent to Gitter
re := regexp.MustCompile(`\x03(?:\d{1,2}(?:,\d{1,2})?)?|[[:cntrl:]]`)
msg.Text = re.ReplaceAllString(msg.Text, "")