summaryrefslogtreecommitdiff
path: root/vendor/github.com/microcosm-cc/bluemonday/css/handlers.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/microcosm-cc/bluemonday/css/handlers.go')
-rw-r--r--vendor/github.com/microcosm-cc/bluemonday/css/handlers.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/vendor/github.com/microcosm-cc/bluemonday/css/handlers.go b/vendor/github.com/microcosm-cc/bluemonday/css/handlers.go
index e0429cf25..f8b8b61af 100644
--- a/vendor/github.com/microcosm-cc/bluemonday/css/handlers.go
+++ b/vendor/github.com/microcosm-cc/bluemonday/css/handlers.go
@@ -366,10 +366,11 @@ func in(value []string, arr []string) bool {
func splitValues(value string) []string {
values := strings.Split(value, ",")
+ newValues := []string{}
for _, strippedValue := range values {
- strippedValue = strings.ToLower(strings.TrimSpace(strippedValue))
+ newValues = append(newValues, strings.ToLower(strings.TrimSpace(strippedValue)))
}
- return values
+ return newValues
}
func GetDefaultHandler(attr string) func(string) bool {