feat!: redefine hostname as a required property that maps to --host (#256)

This commit is contained in:
Gareth
2024-05-05 12:42:30 -07:00
parent 29620f2897
commit fa851967b1
21 changed files with 388 additions and 302 deletions
+8
View File
@@ -0,0 +1,8 @@
package stringutil
import "regexp"
func SanitizeID(id string) string {
reg := regexp.MustCompile(`[^a-zA-Z0-9_\-\.]+`)
return reg.ReplaceAllString(id, "_")
}