mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-10-02 20:57:42 +00:00
feat!: redefine hostname as a required property that maps to --host (#256)
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
package stringutil
|
||||
|
||||
import "regexp"
|
||||
|
||||
func SanitizeID(id string) string {
|
||||
reg := regexp.MustCompile(`[^a-zA-Z0-9_\-\.]+`)
|
||||
return reg.ReplaceAllString(id, "_")
|
||||
}
|
||||
Reference in New Issue
Block a user