diff --git a/src/status_im/chat/suggestions.cljs b/src/status_im/chat/suggestions.cljs index b673da0354..4702e55564 100644 --- a/src/status_im/chat/suggestions.cljs +++ b/src/status_im/chat/suggestions.cljs @@ -41,7 +41,7 @@ (defn check-suggestion [db message] (when-let [suggestion-text (when (string? message) - (re-matches #"^![^\s]+\s" message))] + (re-matches (re-pattern (str "^" chat-consts/command-char "[^\\s]+\\s")) message))] (let [suggestion-text' (s/trim suggestion-text)] (->> (get-commands db) (filter #(= suggestion-text' (->> % second :name (str chat-consts/command-char))))