mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-12 20:13:59 +02:00
Fix panic when using URLize
Using URLize on a string like '100%-true' would cause a panic
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
32d82a4496
commit
330639d2ae
@@ -31,6 +31,7 @@ func TestURLize(t *testing.T) {
|
||||
{"foo,bar:foobar", "foobarfoobar"},
|
||||
{"foo/bar.html", "foo/bar.html"},
|
||||
{"трям/трям", "%D1%82%D1%80%D1%8F%D0%BC/%D1%82%D1%80%D1%8F%D0%BC"},
|
||||
{"100%-google", "100-google"},
|
||||
}
|
||||
|
||||
for _, test := range tests {
|
||||
|
Reference in New Issue
Block a user