From: Anthony Minessale Date: Thu, 24 Jul 2014 20:38:12 +0000 (+0500) Subject: render image urls X-Git-Tag: v1.4.8~10^2~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4ff7eade7fe022fcde5d2052e1557aa68ea235e;p=thirdparty%2Ffreeswitch.git render image urls --- diff --git a/html5/verto/demo/verto.js b/html5/verto/demo/verto.js index de27cabbb1..e8cc456867 100644 --- a/html5/verto/demo/verto.js +++ b/html5/verto/demo/verto.js @@ -115,7 +115,7 @@ var callbacks = { var body = data.body; if (body.match(/\.gif|\.jpg|\.jpeg|\.png/)) { - body = body.replace(/(http[s]{0,1}:\/\/\S+)/g, "$1
<\/a>"); + body = body.replace(/(http[s]{0,1}:\/\/\S+)/g, "
$1
<\/a>"); } else { body = body.replace(/(http[s]{0,1}:\/\/\S+)/g, "
$1<\/a>"); }