Skip to content
jdubs edited this page Oct 23, 2016 · 1 revision

Overview

Requires a valid URL be entered into spec control. This validation is quite forgiving. Essentially it attempts to ensure that the URL does not contain invalid characters nor invalid protocol prefixes. Example of allowed URL: http://www.four51.com, http://four51.com. Regular expression used for validation:

(((http|ftp|https)://)|(\.))+(([a-zA-Z0-9\._-]+\.[a-zA-Z]{2,6})|([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}))(/[a-zA-Z0-9\&%_\./-~-]*)?

Parameters

( options ) Includes all optional properties applied to all validators

Example

[[Website]]
spec['Website'].url();

Clone this wiki locally