From 4e58d4824e3369cecbcc4ae6054d2f6df2c50cb1 Mon Sep 17 00:00:00 2001 From: sostler Date: Thu, 20 May 2010 16:03:12 -0400 Subject: Removed away.js and cookie.js, added svg support --- static/js/pichat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'static/js/pichat.js') diff --git a/static/js/pichat.js b/static/js/pichat.js index a7caadc..b212fbd 100644 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -51,7 +51,7 @@ function escapeHtml(txt) { } URLRegex = /((\b(http\:\/\/|https\:\/\/|ftp\:\/\/)|(www\.))+(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?)/gi; -PicRegex = /\.(jpg|jpeg|png|gif|bmp)$/i; +PicRegex = /\.(jpg|jpeg|png|gif|bmp|svg)$/i; function getImagesAsArray(text) { var imgs = [] @@ -632,7 +632,7 @@ function paletteToggle(){ function setupUpload(elementId, roomKey) { var onSubmit = function(file, ext) { - if (!(ext && /^(jpg|png|jpeg|gif|bmp)$/i.test(ext))) { + if (!(ext && /^(jpg|png|jpeg|gif|bmp|svg)$/i.test(ext))) { alert('SORRY, NOT AN IMAGE DUDE... '); return false; } -- cgit v1.2.3-70-g09d2