Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Note status of regexes for EmailAddressAttribute, PhoneAttribute, UrlAttribute #1201

Open
@rpetrusha

Description

@rpetrusha

Note status of regexes for EmailAddressAttribute, PhoneAttribute, UrlAttribute

See #686

In .NET Framework to version 4.6, the EmailAddressAttribute, PhoneAttribute, and UrlAttribute relied on regexes for validation. Version 4.6.1 made it possible to disable regex validation, which was on by default. Version 4.7.2 disabled regex validation by default.

.NET Core does not support regex validation for these types.

This needs to be made explicit in the documentation for the three types. For more information, see "dataAnnotations:dataTypeAttribute:disableRegex" app setting is on by default in .NET Framework 4.7.2.

//cc @KyleMit

Metadata

Metadata

Assignees

No one assigned

    Labels

    Pri2Indicates issues/PRs that are medium priorityPri3Indicates issues/PRs that are low priorityarea-System.ComponentModel.DataAnnotationsdoc-updateUpdate outdated articleshelp wantedGood for community contributors to help [up-for-grabs]

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions