From 1b152e7cbedd181c4fc3ddb9b199e0a3c99a75fe Mon Sep 17 00:00:00 2001 From: bnu Date: Mon, 4 May 2009 02:57:29 +0000 Subject: [PATCH] =?UTF-8?q?autolink=20addon=20:=20=EB=82=B4=EC=9A=A9?= =?UTF-8?q?=EC=9D=B4=20=EB=A7=8E=EC=9D=80=20=EA=B2=BD=EC=9A=B0=20IE?= =?UTF-8?q?=EC=97=90=EC=84=9C=20=EB=8A=90=EB=A0=A4=EC=A7=80=EB=8A=94=20?= =?UTF-8?q?=EB=AC=B8=EC=A0=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6256 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- addons/autolink/autolink.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/autolink/autolink.js b/addons/autolink/autolink.js index fa4478039..59e5dc43d 100644 --- a/addons/autolink/autolink.js +++ b/addons/autolink/autolink.js @@ -11,11 +11,11 @@ jQuery(function($) { if(!pObj) continue; var pN = pObj.nodeName.toLowerCase(); - if($.inArray(pN, ['a', 'pre', 'xml', 'textarea', 'input', 'option', 'code']) != -1) continue; + if($.inArray(pN, ['a', 'pre', 'xml', 'textarea', 'input', 'select', 'option', 'code', 'script', 'style']) != -1) continue; if(obj.nodeType == 3 && obj.length >= 10) { var content = obj.nodeValue; - if(!url_regx.test(content)) continue; + if(!/(http|https|ftp|news|telnet|irc):\/\//i.test(content)) continue; content = content.replace(//g, '>'); @@ -31,6 +31,6 @@ jQuery(function($) { } $('.xe_content').each(function() { - if(url_regx.test($(this).text())) replaceHrefLink(this); + replaceHrefLink(this); }); });