Merge branch 'master' into refactor/page-parent

This commit is contained in:
Tienson Qin
2025-06-16 16:26:56 +08:00
committed by GitHub
3 changed files with 73 additions and 3 deletions

View File

@@ -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