File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -138,13 +138,13 @@ func TestRender_links(t *testing.T) {
138
138
`<p><a href="http://www.example.com/wpstyle/?p=364" rel="nofollow">http://www.example.com/wpstyle/?p=364</a></p>` )
139
139
test (
140
140
"https://www.example.com/foo/?bar=baz&inga=42&quux" ,
141
- `<p><a href="https://www.example.com/foo/?bar=baz&inga=42&quux" rel="nofollow">https://www.example.com/foo/?bar=baz&inga=42&quux</a></p>` )
141
+ `<p><a href="https://www.example.com/foo/?bar=baz& inga=42& quux" rel="nofollow">https://www.example.com/foo/?bar=baz&inga=42&quux</a></p>` )
142
142
test (
143
143
"http://142.42.1.1/" ,
144
144
`<p><a href="http://142.42.1.1/" rel="nofollow">http://142.42.1.1/</a></p>` )
145
145
test (
146
146
"https://github.com/go-gitea/gitea/?p=aaa/bbb.html#ccc-ddd" ,
147
- `<p><a href="https://github.com/go-gitea/gitea/?p=aaa%2Fbbb .html#ccc-ddd" rel="nofollow">https://github.com/go-gitea/gitea/?p=aaa/bbb.html#ccc-ddd</a></p>` )
147
+ `<p><a href="https://github.com/go-gitea/gitea/?p=aaa/bbb .html#ccc-ddd" rel="nofollow">https://github.com/go-gitea/gitea/?p=aaa/bbb.html#ccc-ddd</a></p>` )
148
148
test (
149
149
"https://en.wikipedia.org/wiki/URL_(disambiguation)" ,
150
150
`<p><a href="https://en.wikipedia.org/wiki/URL_(disambiguation)" rel="nofollow">https://en.wikipedia.org/wiki/URL_(disambiguation)</a></p>` )
@@ -162,7 +162,7 @@ func TestRender_links(t *testing.T) {
162
162
`<p><a href="ftp://gitea.com/file.txt" rel="nofollow">ftp://gitea.com/file.txt</a></p>` )
163
163
test (
164
164
"magnet:?xt=urn:btih:5dee65101db281ac9c46344cd6b175cdcadabcde&dn=download" ,
165
- `<p><a href="magnet:?xt=urn%3Abtih%3A5dee65101db281ac9c46344cd6b175cdcadabcde& dn=download" rel="nofollow">magnet:?xt=urn:btih:5dee65101db281ac9c46344cd6b175cdcadabcde&dn=download</a></p>` )
165
+ `<p><a href="magnet:?xt=urn:btih:5dee65101db281ac9c46344cd6b175cdcadabcde& dn=download" rel="nofollow">magnet:?xt=urn:btih:5dee65101db281ac9c46344cd6b175cdcadabcde&dn=download</a></p>` )
166
166
167
167
// Test that should *not* be turned into URL
168
168
test (
You can’t perform that action at this time.
0 commit comments