diff options
author | Peter Zhu <peter@peterzhu.ca> | 2022-04-11 15:37:29 -0400 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-04-13 22:25:33 +0900 |
commit | aaac279de09eb1fe48b32fd95e61453f0d602ac4 (patch) | |
tree | 614d92428f429923355d5fe02b13189bdb840dc7 /test/rdoc/test_rdoc_markup_to_html.rb | |
parent | 7e97ebb6eb392d90fc6e49a16620e71d398f4bdf (diff) |
[ruby/rdoc] Only parse valid URLs
Only valid characters for URLs should be used for generating URLs.
A list of valid characters can be found in sections 2.2 and 2.3 of IETF
RFC 3986 (https://www.ietf.org/rfc/rfc3986.txt).
https://github.com/ruby/rdoc/commit/2bd8fcdd4f
Diffstat (limited to 'test/rdoc/test_rdoc_markup_to_html.rb')
-rw-r--r-- | test/rdoc/test_rdoc_markup_to_html.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/rdoc/test_rdoc_markup_to_html.rb b/test/rdoc/test_rdoc_markup_to_html.rb index b2b21de806..e5d7a35710 100644 --- a/test/rdoc/test_rdoc_markup_to_html.rb +++ b/test/rdoc/test_rdoc_markup_to_html.rb @@ -707,6 +707,7 @@ EXPECTED def test_convert_with_exclude_tag assert_equal "\n<p><code>aaa</code>[:symbol]</p>\n", @to.convert('+aaa+[:symbol]') assert_equal "\n<p><code>aaa[:symbol]</code></p>\n", @to.convert('+aaa[:symbol]+') + assert_equal "\n<p><code>https:</code>-foobar</p>\n", @to.convert('<tt>https:</tt>-foobar') assert_equal "\n<p><a href=\":symbol\">aaa</a></p>\n", @to.convert('aaa[:symbol]') end |