feat: allow for URL pattern matching on funnels

This commit is contained in:
Caio Carvalho 2024-10-18 20:50:00 -03:00
parent d8e46e487c
commit 5ca87ddab8
2 changed files with 42 additions and 5 deletions

View file

@ -31,7 +31,10 @@ const schema = {
.of(
yup.object().shape({
type: yup.string().required(),
value: yup.string().required(),
value: yup
.string()
.matches(/^[a-zA-Z0-9/*-_]+$/, 'Invalid URL pattern')
.required(),
}),
)
.min(2)