Skip to content

Commit

Permalink
fix parse MAC validator
Browse files Browse the repository at this point in the history
  • Loading branch information
tmunzer committed Aug 27, 2024
1 parent 0797d0c commit 713dbce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/validators/parse_mac.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func (o ParseMacValidator) ValidateString(_ context.Context, req validator.Strin
return
}

re_variable := `[0-9a-f]{12}`
re_variable := `^[0-9a-f]{12}$`

value := req.ConfigValue.ValueString()
if is_valid, err := regexp.MatchString(re_variable, value); !is_valid || err != nil {
Expand Down

0 comments on commit 713dbce

Please sign in to comment.