Skip to content

Commit

Permalink
Fix url validation
Browse files Browse the repository at this point in the history
Accept http and https
  • Loading branch information
areina committed Nov 13, 2016
1 parent cc9bc0c commit c176315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/elfeed_cljsrn/events.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
arg))

(defn valid-url? [url]
(clojure.string/starts-with? url "http://"))
(not (nil? (re-matches #"(https?://)(.*)" url))))

;; -- Interceptors -------------------------------------------------------------

Expand Down

0 comments on commit c176315

Please sign in to comment.