update ntfy channel special characters

This commit is contained in:
cato-001 2025-08-23 22:49:22 +02:00
parent b6634b7eaa
commit ee642d5267
2 changed files with 5 additions and 2 deletions

View file

@ -3,6 +3,7 @@ package main
import (
"fmt"
"os"
"strings"
arg "github.com/alexflint/go-arg"
)
@ -29,7 +30,9 @@ func main() {
args.Pink, args.Yellow, args.Blue, args.Gray, args.Brown = true, true, true, true, true
}
replacer := strings.NewReplacer("ö", "oe", "ä", "ae", "ü", "ue", "ß", "ss")
NotifyChannel = fmt.Sprintf("%s-%d", args.Street, args.Home)
NotifyChannel = replacer.Replace(NotifyChannel)
streetNumbers, err := GetStreetNumbers()
if err != nil {