Skip to content

Commit

Permalink
fix(hadoop): Fix admin_user_password regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
youngmn committed Apr 24, 2024
1 parent 508ffac commit d44e705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/service/hadoop/hadoop.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func (r *hadoopResource) Schema(_ context.Context, req resource.SchemaRequest, r
stringvalidator.LengthBetween(8, 20),
stringvalidator.RegexMatches(regexp.MustCompile(`[A-Z]+`), "Must have at least one uppercase alphabet"),
stringvalidator.RegexMatches(regexp.MustCompile(`\d+`), "Must have at least one number"),
stringvalidator.RegexMatches(regexp.MustCompile(`[~!@#$%^*+()\-_=\[\]\{\};:,.<>?]+`), "Must have at least one special character"),
stringvalidator.RegexMatches(regexp.MustCompile(`[\W_]+`), "Must have at least one special character"),
stringvalidator.RegexMatches(regexp.MustCompile(`^[^&\\"'/\s`+"`"+`]*$`), "Must not have ` & \\ \" ' / and white space."),
),
},
Expand Down

0 comments on commit d44e705

Please sign in to comment.