Skip to content

Commit

Permalink
escape also values with dots
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Labarussias <[email protected]>
  • Loading branch information
Issif authored and poiana committed Feb 23, 2024
1 parent e3b38d3 commit 4ad5919
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ func GetPriortiyInt(prio string) int {
func Escape(s string) string {
s = strings.ReplaceAll(s, "-", `\-`)
s = strings.ReplaceAll(s, "/", "\\/")
s = strings.ReplaceAll(s, ".", "\\.")
return s
}

Expand Down

0 comments on commit 4ad5919

Please sign in to comment.