srkirkland/DataAnnotationsExtensions — pull request #35 by spib (2012-03-26 09:41:15+00:00)
Title: Allow protocol to be explicitly excluded from Url attribute

Hi

Please review this pull request. It allows the user to specify that they want to perform URL validation, but they do not want to allow urls which contain protocols.

The reason I needed this change (and the reason I think it's useful to others) is that I am using a UI feature from Twitter Bootstrap which prepends the form input with http:// such that the entered value from the user does not include the protocol. I still want to validate the remainder of the url, but the protocol should not be specified.

Hope you think this is useful

Thanks

James