From ce2a31b2338f93b6f12f412e86abc99c07ac1a90 Mon Sep 17 00:00:00 2001 From: john Date: Thu, 12 Jan 2017 13:50:53 -0500 Subject: [PATCH] chat.suggestions: updated regex for switch from ! to / command char --- src/status_im/chat/suggestions.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))))