mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
#18569698 텍스트 노드에 MMS 링크만 존재할 경우, 링크를 인식하지 못하던 버그 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7074 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
08685ad504
commit
c1ff5313ce
2 changed files with 5 additions and 4 deletions
|
|
@ -65,7 +65,7 @@
|
|||
|
||||
if(content.length < 5) return;
|
||||
|
||||
if(!/(http|https|ftp|news|telnet|irc):\/\//i.test(content)) return;
|
||||
if(!/(http|https|ftp|news|telnet|irc|mms):\/\//i.test(content)) return;
|
||||
|
||||
thisPlugin.targets.push(this);
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ describe('AutoLink functionality', {
|
|||
value_of( $('#test5').contents().length ).should_be(3);
|
||||
},
|
||||
"#test6 - complex example" : function() {
|
||||
value_of( $('#test6 a').length ).should_be(7);
|
||||
value_of( $('#test6 a').length ).should_be(8);
|
||||
value_of( $('#test6 a').eq(0).attr('href') ).should_be($('#test6 a').eq(0).text());
|
||||
value_of( $('#test6 a').eq(2).parent().is('b') ).should_be_true();
|
||||
value_of( $('#test6 > textarea > a').length ).should_be(0);
|
||||
|
|
@ -85,7 +85,7 @@ describe('Autolink trigger', {
|
|||
<div id="test4">http://www.abc.com/some_program?hello=world&encoded=%ED%C2%C1</div>
|
||||
<div id="test5">Before text. http://www.abc.com/some_program?hello=world&encoded=%ED%C2%C1 After Text</div>
|
||||
<div id="test6">
|
||||
This is text. http://www.abc.com/some_program?hello=world&encoded=%ED%C2%C1 Text Text.
|
||||
<p>This is text. http://www.abc.com/some_program?hello=world&encoded=%ED%C2%C1 Text Text.
|
||||
Another URL : http://www.decccccf12312.co.uk/path/to/program?mymy=lovelove. XE!
|
||||
<b>Bold text and http://mail.abc.com/path/to/one_cgi.cgi?hello=world#hash_text Bold text end</b>
|
||||
<textarea>this text should be ignored http://mygony.com ignored?</textarea>
|
||||
|
|
@ -96,7 +96,8 @@ describe('Autolink trigger', {
|
|||
</div>
|
||||
IP Test http://119.205.243.46 and MMS Link mms://xpressengine.com/a.wmv
|
||||
http://localhost/some/path/file.ext
|
||||
Is it OK?
|
||||
Is it OK?</p>
|
||||
<p>mms://xpressengine.com/a.wmv</p>
|
||||
</div>
|
||||
<div id="test7">http://mygony.com</div>
|
||||
<div id="test8">Go to http://mygony.com</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue