summaryrefslogtreecommitdiff
path: root/src/site.clj
diff options
context:
space:
mode:
Diffstat (limited to 'src/site.clj')
-rw-r--r--src/site.clj3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/site.clj b/src/site.clj
index a472dfe..4454da3 100644
--- a/src/site.clj
+++ b/src/site.clj
@@ -640,7 +640,7 @@ ORDER BY msg_count DESC")
;; http://snippets.dzone.com/posts/show/6995
(def single-url-regex #"(?i)^((http\:\/\/|https\:\/\/|ftp\:\/\/)|(www\.))+(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$")
-(def pic-regex #"(?i)\.(jpg|jpeg|png|gif|bmp|ico)$")
+(def pic-regex #"(?i)\.(jpg|jpeg|png|gif|bmp|svg)$")
(defn strip-params [s]
(.replaceFirst s "\\?.*$" ""))
@@ -1087,6 +1087,7 @@ ORDER BY msg_count DESC")
"js" "text/javascript"
"pdf" "application/pdf"
"png" "image/png"
+ "svg" "image/svg+xml"
"swf" "application/x-shockwave-flash"
"txt" "text/plain"
"xml" "text/xml"