Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow validation pattern to be a RegExp or a string [] #1304

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jjolton-contentful
Copy link
Contributor

@jjolton-contentful jjolton-contentful commented May 8, 2024

Summary

regexp and preventRegexp currently only accept a regexp that is represented as a pattern string and its flags, but it should also be able to accept a RegExp directly, see #1178 for more details.

Description

Both regexp and prohibitRegexp validations will now support either the existing pattern/flags format or a RegExp directly

@jjolton-contentful jjolton-contentful force-pushed the feat/allow-pattern-to-be-regexp-or-string branch 4 times, most recently from eea81d1 to 8100cbe Compare May 10, 2024 17:42
@jjolton-contentful jjolton-contentful force-pushed the feat/allow-pattern-to-be-regexp-or-string branch from 8100cbe to bd436d2 Compare May 10, 2024 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant