提交 15071734 编写于 作者: E Eugene Pimenov 提交者: Pratik Naik

auto_link helper fails to recognize links separated by space. [#72 state:resolved]

Signed-off-by: NPratik Naik <pratiknaik@gmail.com>
上级 3baf8104
......@@ -454,7 +454,7 @@ def set_cycle(name, cycle_object)
( # leading text
<\w+.*?>| # leading HTML tag, or
[^=!:'"/]| # leading punctuation, or
^ # beginning of line
| # nothing
)
(
(?:https?://)| # protocol spec, or
......
......@@ -262,6 +262,7 @@ def test_auto_linking
assert_equal email2_result, auto_link(email2_raw)
assert_equal '', auto_link(nil)
assert_equal '', auto_link('')
assert_equal "#{link_result} #{link_result} #{link_result}", auto_link("#{link_raw} #{link_raw} #{link_raw}")
end
def test_auto_link_at_eol
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册