URL autolinking bypasses inlined HTML (or any other URL preceded by double or single quote)
This commit is contained in:
parent
3e7610c0cd
commit
b1b04e1af4
4 changed files with 44 additions and 28 deletions
|
@ -131,6 +131,11 @@ class URITest < Test::Unit::TestCase
|
|||
match(URIChunk, 'This http://hobix.com/sample.jpg should match',
|
||||
:link_text => 'http://hobix.com/sample.jpg')
|
||||
end
|
||||
|
||||
def test_inline_html
|
||||
assert_conversion_does_not_apply(URIChunk, '<IMG SRC="http://hobix.com/sample.jpg">')
|
||||
assert_conversion_does_not_apply(URIChunk, "<img src='http://hobix.com/sample.jpg'/>")
|
||||
end
|
||||
|
||||
def test_non_uri
|
||||
# "so" is a valid country code; "libproxy.so" is a valid url
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue