Skip to content

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.

2 participants