summaryrefslogtreecommitdiff
path: root/src/site.clj
diff options
context:
space:
mode:
authorsostler <sbostler@gmail.com>2010-05-20 16:03:12 -0400
committersostler <sbostler@gmail.com>2010-05-20 16:03:12 -0400
commit4e58d4824e3369cecbcc4ae6054d2f6df2c50cb1 (patch)
treed52d402b7bd4914baf4ce9d58bc24f9f00fb8a25 /src/site.clj
parent984b04cdd4748c88086e1d1ca0b060e1eaebb2a6 (diff)
Removed away.js and cookie.js, added svg support
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"