File tree 2 files changed +2
-1
lines changed
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 107
107
(= handler :community-chat )
108
108
(:community-data route-params)
109
109
(string? (:community-data route-params))
110
- (string/includes? (:community-data route-params) " - " ))
110
+ (re-find constants/regx-starts-with-uuid (:community-data route-params)))
111
111
(assoc-in [:route-params :community-channel-id ] (:community-data route-params))
112
112
113
113
(and equal-end-of-base64url (= handler :user ) (:user-data route-params))
Original file line number Diff line number Diff line change 184
184
(def regx-ens #"^(?=.{5,255}$)([a-zA-Z0-9-]+\. )*[a-zA-Z0-9-]+\. [a-zA-Z]{2,}$" )
185
185
(def regx-address #"^0x[a-fA-F0-9]{40}$" )
186
186
(def regx-address-contains #"(?i)0x[a-fA-F0-9]{40}" )
187
+ (def regx-starts-with-uuid #"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}" )
187
188
188
189
(def ^:const dapp-permission-contact-code " contact-code" )
189
190
(def ^:const dapp-permission-web3 " web3" )
You can’t perform that action at this time.
0 commit comments