Skip to content

handle string and object options in matches#2

Open
mpatelkestrel wants to merge 1 commit into
base-fix-matches-options-handling-r-11722390from
mpatelkestrel/fix-matches-options-handl-r-11722390
Open

handle string and object options in matches#2
mpatelkestrel wants to merge 1 commit into
base-fix-matches-options-handling-r-11722390from
mpatelkestrel/fix-matches-options-handl-r-11722390

Conversation

@mpatelkestrel
Copy link
Copy Markdown

@mpatelkestrel mpatelkestrel commented Feb 14, 2026

Note

Low Risk
Small, localized change to string validation option parsing; low chance of regression beyond message/name handling for matches() callers.

Overview
Updates StringSchema.matches() to treat options as either a message string or an options object, instead of relying on truthy property checks. This makes passing a plain string consistently set the validation message while preserving support for { excludeEmptyString, message, name }.

Written by Cursor Bugbot for commit 99658d2. This will update automatically on new commits. Configure here.

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