mirror of
https://github.com/logseq/logseq.git
synced 2026-04-30 17:06:23 +00:00
fix: match paste of x.com links for twitter
This commit is contained in:
@@ -63,7 +63,8 @@
|
||||
(boolean (text-util/get-matched-video url))
|
||||
(util/format "{{video %s}}" url)
|
||||
|
||||
(or (string/includes? url "twitter.com") (string/includes? url "x.com"))
|
||||
(or (re-matches #"^https://twitter\.com.*?$" url)
|
||||
(re-matches #"^https://x\.com.*?$" url))
|
||||
(util/format "{{twitter %s}}" url)))
|
||||
|
||||
(defn- try-parse-as-json
|
||||
|
||||
Reference in New Issue
Block a user