srkirkland / DataAnnotationsExtensions

Validation extensions for DataAnnotations, including optional MVC client validation implementations
https://dataannotationsextensions.apphb.com/
BSD 3-Clause "New" or "Revised" License
308 stars 86 forks source link

Url Attribute does not respect Localhost #48

Open justinsa opened 12 years ago

justinsa commented 12 years ago

The following URL will fail the UrlAttribute regular expressions: http://localhost:63399

http://localhost:63399 is a valid URL on a local machine under IIS. This is required for being able to test a certain solution locally under the ASP.NET Dev Server 10.

justinsa commented 12 years ago

After some further though I realized what the full implications of this are. The UrlAttribute does not respect any local network name, e.g., anything addressable by name on a private network that does not need a dot for referencing. It is still a URL though and should be supported.