dotnet / dotnet/dotnet-api-docs
Note status of regexes for EmailAddressAttribute, PhoneAttribute, UrlAttribute
- Lingua principale
- C#
- Stelle
- 949
- Fork
- 1.7k
- Merge medio
- 2g 19h
- PR unite (30g)
- 52
Descrizione
## Note status of regexes for EmailAddressAttribute, PhoneAttribute, UrlAttribute
See dotnet/dotnet-api-docs#686
In .NET Framework to version 4.6, the [EmailAddressAttribute](https://docs.microsoft.com/dotnet/api/system.componentmodel.dataannotations.emailaddressattribute), [PhoneAttribute](https://docs.microsoft.com/dotnet/api/system.componentmodel.dataannotations.phoneattribute), and [UrlAttribute](https://docs.microsoft.com/dotnet/api/system.componentmodel.dataannotations.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](https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/runtime/4.0-4.7.2#web-applications).
//cc @KyleMit
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia dalle pagine della documentazione per EmailAddressAttribute, PhoneAttribute e UrlAttribute, quindi confronta la guida alla migrazione a .NET Framework collegata. Fai in modo che la documentazione descriva esplicitamente il comportamento della convalida tramite regex in .NET Framework e la sua mancanza di supporto in .NET Core per tutti e tre i tipi.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- csharp
- Ambito
- documentation
- Tipo di issue
- Documentazione
- Difficoltà
- 2/5
- Tempo stimato
- Mezza giornata
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100