File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 103103 Input: ['/send' 'Jarrad' '1.0']
104104 Output: '/send Jarrad 1.0'
105105
106+ Input: ['/send' '\" Jarrad\" ' '1.0']
107+ Output: '/send Jarrad 1.0'
108+
106109 Input: ['/send' 'Complex name with space in between' '1.0']
107110 Output: '/send \" Complex name with space in between\" 1.0'"
108111 (->> args
109112 (map (fn [arg]
110- (if (not (str/index-of arg const/spacing-char))
111- arg
112- (str const/arg-wrapping-char arg const/arg-wrapping-char))))
113+ (let [arg (str/replace arg (re-pattern const/arg-wrapping-char) " " )]
114+ (if (not (str/index-of arg const/spacing-char))
115+ arg
116+ (str const/arg-wrapping-char arg const/arg-wrapping-char)))))
113117 (str/join const/spacing-char)))
114118
115119(defn selected-chat-command
Original file line number Diff line number Diff line change 1616(def request-message-icon-scale-delay 600 )
1717
1818(defn set-chat-command [message-id command]
19- (let [command-key (keyword (:name command))
20- metadata {:to-message-id message-id}]
19+ (let [metadata {:to-message-id message-id}]
2120 (dispatch [:select-chat-input-command command metadata])))
2221
2322(def min-scale 1 )
You can’t perform that action at this time.
0 commit comments