Skip to content

RegularExpressionAttribute.IsValid has incorrect Exceptions section #8164

Open
@daiplusplus

Description

@daiplusplus
  • RegularExpressionValidator.IsValid does not throw ValidationException
  • The documentation says it throws ArgumentException for the regex pattern even though that's not an actual argument to the public method.
  • Also, the documentation doesn't explain how an argument typed as Object? (which is not a String) can be validated by a regular expression - or what happens to null arguments.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions