summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/site.clj2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/site.clj b/src/site.clj
index 57dc4b6..6eba82b 100644
--- a/src/site.clj
+++ b/src/site.clj
@@ -558,7 +558,7 @@ FROM users u
;; http://snippets.dzone.com/posts/show/6995
(def url-regex #"(?i)^((http\:\/\/|https\:\/\/|ftp\:\/\/)|(www\.))+(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$")
-(def pic-regex #"(?i)\.(jpg|jpeg|png|gif|bmp|svg)")
+(def pic-regex #"(?i)\.(jpg|jpeg|png|gif|bmp|svg)(\?|$)")
(defn is-url? [word]
(and (re-find url-regex word)