From 3835549c200e67c1657e55f92d65deb1e7858f2c Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Thu, 2 Jan 2014 18:22:20 -0200 Subject: [PATCH] patch from kseistrup fixes #1 --- twister_formatpost.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/twister_formatpost.js b/twister_formatpost.js index 10a60e6..2e656fc 100644 --- a/twister_formatpost.js +++ b/twister_formatpost.js @@ -159,6 +159,10 @@ function htmlFormatMsg( msg, output, mentions ) { } var httpindex = msg.indexOf("http://"); + var httpsindex = msg.indexOf("https://"); + if (httpsindex != -1) { + httpindex = httpsindex; + } if( httpindex != -1 ) { output.append(msg.substr(0, httpindex)); tmp = msg.substring(httpindex);