From e15cb4b43a36592cde42ec2ac4d181e857833ce7 Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Mon, 14 Nov 2011 17:28:25 -0300 Subject: fixed bug reported in http://askbot.org/en/question/699/bug-in-parser --- askbot/skins/common/media/js/wmd/wmd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/askbot/skins/common/media/js/wmd/wmd.js b/askbot/skins/common/media/js/wmd/wmd.js index bc3b5a0c..f5354fac 100644 --- a/askbot/skins/common/media/js/wmd/wmd.js +++ b/askbot/skins/common/media/js/wmd/wmd.js @@ -244,7 +244,7 @@ util.prompt = function(text, defaultInputText, makeLinkMarkdown, dialogType){ text = text.replace('http://https://', 'https://'); text = text.replace('http://ftp://', 'ftp://'); - if (text.indexOf('http://') === -1 && text.indexOf('ftp://') === -1) { + if (text.indexOf('http://') === -1 && text.indexOf('ftp://') === -1 && text.indexOf('https://') === -1) { if (dialogType == 'link'){ //add http only to urls text = 'http://' + text; -- cgit v1.2.3-1-g7c22