mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-25 18:41:10 +01:00
fixed out of range error on gotify message being sent
This commit is contained in:
@@ -9,9 +9,6 @@ import (
|
||||
"golang.org/x/text/language"
|
||||
)
|
||||
|
||||
// TODO: support other languages.
|
||||
var titleCaser = cases.Title(language.AmericanEnglish)
|
||||
|
||||
func CommaSeperatedList(s string) []string {
|
||||
res := strings.Split(s, ",")
|
||||
for i, part := range res {
|
||||
@@ -21,7 +18,8 @@ func CommaSeperatedList(s string) []string {
|
||||
}
|
||||
|
||||
func Title(s string) string {
|
||||
return titleCaser.String(s)
|
||||
// TODO: support other languages.
|
||||
return cases.Title(language.AmericanEnglish).String(s)
|
||||
}
|
||||
|
||||
func ExtractPort(fullURL string) (int, error) {
|
||||
|
||||
Reference in New Issue
Block a user