Skip to content

Commit

Permalink
Added urldecode go template func
Browse files Browse the repository at this point in the history
  • Loading branch information
preved911 committed Mar 31, 2024
1 parent 02d048c commit baf18d2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/alertmanager/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,11 @@ var DefaultFuncs = FuncMap{

return result
},
"urlQueryUnescape": func(s string) string {
value, _ := url.QueryUnescape(s)

return value
},
}

// Pair is a key/value string pair.
Expand Down

0 comments on commit baf18d2

Please sign in to comment.