From 330639d2aefbcaef4106653617fe8b518eb0711e Mon Sep 17 00:00:00 2001 From: Mathias Biilmann Date: Mon, 11 Jul 2016 01:06:40 -0700 Subject: Fix panic when using URLize Using URLize on a string like '100%-true' would cause a panic --- helpers/url_test.go | 1 + 1 file changed, 1 insertion(+) (limited to 'helpers/url_test.go') diff --git a/helpers/url_test.go b/helpers/url_test.go index fd8cd5137..9cca1cbb8 100644 --- a/helpers/url_test.go +++ b/helpers/url_test.go @@ -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 { -- cgit v1.2.3