Skip to content

Commit c84fec7

Browse files
authored
Update README.md
1 parent 4f3b414 commit c84fec7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ Fails validation if the attribute's value matches the user-defined regular expre
6363
will attempt to convert the attribute to a string first.
6464

6565
```go
66-
v := validation.RegexpNotMatch("{{ your regex here }}")
66+
{
67+
Validators: []tfsdk.AttributeValidator{
68+
validation.RegexpNotMatch("{{ your regex here }}")
69+
},
70+
}
6771
```
6872

6973
### Length

0 commit comments

Comments
 (0)