Match multiple times

This commit is contained in:
Dane Everitt 2020-10-22 20:17:58 -07:00
parent 1c787b5f26
commit 903902e123
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -217,7 +217,7 @@ func (sc *SystemConfiguration) ConfigureTimezone() error {
}
}
sc.Timezone = regexp.MustCompile(`[^a-z_/]+/i`).ReplaceAllString(sc.Timezone, "")
sc.Timezone = regexp.MustCompile(`[^a-z_/]+/ig`).ReplaceAllString(sc.Timezone, "")
_, err := time.LoadLocation(sc.Timezone)