Skip to content

Commit

Permalink
fix: universal link regex
Browse files Browse the repository at this point in the history
fixes #17869
  • Loading branch information
yqrashawn committed Nov 29, 2023
1 parent 58d5c3d commit 6efbac1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/status_im2/constants.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@
(def regx-bold #"\*[^*]+\*")
(def regx-italic #"~[^~]+~")
(def regx-backquote #"`[^`]+`")
(def regx-universal-link #"((^https?://status.app/)|(^status-app://))[\x00-\x7F]+$")
(def regx-universal-link
#"((^https?://status.app/)|(^status-app://))(c/|cc/|c#|u/|u#|p/|cr/|g/|wallet/)[\x00-\x7F]+$")
(def regx-community-universal-link #"((^https?://status.app/)|(^status-app://))c/([\x00-\x7F]+)$")
(def regx-deep-link #"((^ethereum:.*)|(^status-app://[\x00-\x7F]+$))")
(def regx-ens #"^(?=.{5,255}$)([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.[a-zA-Z]{2,}$")
Expand Down

0 comments on commit 6efbac1

Please sign in to comment.