diff --git a/str/base.go b/str/base.go index 0065746..aaa11ac 100644 --- a/str/base.go +++ b/str/base.go @@ -92,7 +92,7 @@ func (i *baseConfigurator[T]) Regexp(regexp *regexp.Regexp, opts ...RegexpOption func (i *baseConfigurator[T]) AnyOf(allowed ...string) BaseConfigurator { i.c.Append(func(v T) bool { return slices.Contains(allowed, *v) - }, anyOfLocaleKey) + }, anyOfLocaleKey, allowed) return i }