mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
Add '+' as one of the valid characters in urls specified in the front matter
Fixes #1290
This commit is contained in:
committed by
Steve Francia
parent
02effd9dc4
commit
c42982f76b
@@ -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)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user