From 3512b4c045a1a1bcaccbceee24290fc8684a3fc5 Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Tue, 3 Mar 2020 22:29:17 +0100 Subject: [PATCH] clojure.string/ -> string/ --- mastodon_bot/core.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mastodon_bot/core.cljs b/mastodon_bot/core.cljs index d3099f0..3cd7bee 100644 --- a/mastodon_bot/core.cljs +++ b/mastodon_bot/core.cljs @@ -61,7 +61,7 @@ (reduced (str text "...")) (str text " " word))) "" - (clojure.string/split text #" ")) + (string/split text #" ")) :else text)) @@ -144,7 +144,7 @@ ; If the text ends in a link to the media (which is uploaded anyway), ; chop it off instead of including the link in the toot (defn chop-tail-media-url [text media] - (clojure.string/replace text #" (\S+)$" #(if (in (%1 1) (map :url media)) "" (%1 0)))) + (string/replace text #" (\S+)$" #(if (in (%1 1) (map :url media)) "" (%1 0)))) (defn parse-tweet [{created-at :created_at text :full_text