Merge pull request #3012 from ccrvlh/feat/url-pattern

feat: allow for URL pattern matching on funnels
This commit is contained in:
Mike Cao 2024-12-04 13:53:16 -08:00 committed by GitHub
commit ffd27ab202
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 36 additions and 6 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)