Skip to content

Commit 87cc470

Browse files
committed
Allow uppercase characters in dev names
1 parent 21d1fd1 commit 87cc470

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/validations.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func ValidateFsType(s string) bool {
4343
return fsTypeRegex.MatchString(s)
4444
}
4545

46-
var devNameRegexp = regexp.MustCompile(`^[0-9a-z_-]+$`)
46+
var devNameRegexp = regexp.MustCompile(`^[0-9A-Za-z_-]+$`)
4747

4848
func ValidateDevName(s string) bool {
4949
// Allow mapped devices.

0 commit comments

Comments
 (0)