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
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.