diff options
author | Aditya Bhargava <bluemangroupie@gmail.com> | 2016-03-12 15:48:21 -0800 |
---|---|---|
committer | Steve Francia <steve.francia@gmail.com> | 2016-03-21 18:48:50 -0400 |
commit | c42982f76b397a5875114b59391712048e168348 (patch) | |
tree | faf0e8505d4a34977a23afc278d93e2e70cc0ced /helpers/path.go | |
parent | 02effd9dc46201df250564cdbbee1ca2291eb8b4 (diff) |
Add '+' as one of the valid characters in urls specified in the front matter
Fixes #1290
Diffstat (limited to 'helpers/path.go')
-rw-r--r-- | helpers/path.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers/path.go b/helpers/path.go index d9efeb24e..f39815b6e 100644 --- a/helpers/path.go +++ b/helpers/path.go @@ -95,7 +95,7 @@ func UnicodeSanitize(s string) string { target := make([]rune, 0, len(source)) for _, r := range source { - if unicode.IsLetter(r) || unicode.IsDigit(r) || unicode.IsMark(r) || r == '%' || r == '.' || r == '/' || r == '\\' || r == '_' || r == '-' || r == '#' { + if unicode.IsLetter(r) || unicode.IsDigit(r) || unicode.IsMark(r) || r == '%' || r == '.' || r == '/' || r == '\\' || r == '_' || r == '-' || r == '#' || r == '+' { target = append(target, r) } } |