summaryrefslogtreecommitdiffstats
path: root/helpers/url_test.go
diff options
context:
space:
mode:
authorMathias Biilmann <info@mathias-biilmann.net>2016-07-11 01:06:40 -0700
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-07-11 10:06:40 +0200
commit330639d2aefbcaef4106653617fe8b518eb0711e (patch)
tree95678c6a01aa08ce00221467c2a8abaa1e6062a2 /helpers/url_test.go
parent32d82a4496e5f53a723293175e72b5a57ea6e5a3 (diff)
Fix panic when using URLize
Using URLize on a string like '100%-true' would cause a panic
Diffstat (limited to 'helpers/url_test.go')
-rw-r--r--helpers/url_test.go1
1 files changed, 1 insertions, 0 deletions
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 {