Merge pull request #721 from johnmn3/feature/slash-command-char-regex-#687
chat.suggestions: updated regex for switch from ! to / command char
This commit is contained in:
commit
42b14e71df
|
@ -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))))
|
||||
|
|
Loading…
Reference in New Issue