Fix panic when using URLize

Using URLize on a string like '100%-true' would cause a panic
This commit is contained in:
Mathias Biilmann
2016-07-11 01:06:40 -07:00
committed by Bjørn Erik Pedersen
parent 32d82a4496
commit 330639d2ae
2 changed files with 18 additions and 2 deletions

View File

@@ -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 {