diff --git a/connectors/slackapp/slackApp.go b/connectors/slackapp/slackApp.go index d711869..4bde948 100644 --- a/connectors/slackapp/slackApp.go +++ b/connectors/slackapp/slackApp.go @@ -421,6 +421,7 @@ func (s *SlackApp) buildMessage(m *slackevents.MessageEvent) msg.Message { // Slack likes to put these NBSP in and it screws with matching later text = strings.ReplaceAll(text, "\u00a0", " ") + text = strings.ReplaceAll(text, "\ufe0f", "") text = zerowidth.RemoveZeroWidthCharacters(text) isCmd, text := bot.IsCmd(s.config, text) diff --git a/go.mod b/go.mod index 09dee3b..4080965 100644 --- a/go.mod +++ b/go.mod @@ -54,7 +54,7 @@ require ( github.com/stretchr/objx v0.2.0 // indirect github.com/stretchr/testify v1.4.0 github.com/temoto/robotstxt v1.1.1 // indirect - github.com/trubitsyn/go-zero-width v1.0.1 // indirect + github.com/trubitsyn/go-zero-width v1.0.1 github.com/ttacon/builder v0.0.0-20170518171403-c099f663e1c2 // indirect github.com/ttacon/libphonenumber v1.1.0 // indirect github.com/velour/chat v0.0.0-20180713122344-fd1d1606cb89