value to test
boolean indicating if a value is a URI
var bool = isURI( 'http://google.com' );
// returns true
var bool = isURI( 'http://localhost/' );
// returns true
var bool = isURI( 'http://example.w3.org/path%20with%20spaces.html' );
// returns true
var bool = isURI( 'http://example.w3.org/%20' );
// returns true
var bool = isURI( 'ftp://ftp.is.co.za/rfc/rfc1808.txt' );
// returns true
var bool = isURI( 'ftp://ftp.is.co.za/../../../rfc/rfc1808.txt' );
// returns true
var bool = isURI( 'http://www.ietf.org/rfc/rfc2396.txt' );
// returns true
var bool = isURI( 'ldap://[2001:db8::7]/c=GB?objectClass?one' );
// returns true
var bool = isURI( 'mailto:John.Doe@example.com' );
// returns true
var bool = isURI( 'news:comp.infosystems.www.servers.unix' );
// returns true
var bool = isURI( 'tel:+1-816-555-1212' );
// returns true
var bool = isURI( 'telnet://192.0.2.16:80/' );
// returns true
var bool = isURI( 'urn:oasis:names:specification:docbook:dtd:xml:4.1.2' );
// returns true
// No scheme:
var bool = isURI( '' );
// returns false
// No scheme:
var bool = isURI( 'foo' );
// returns false
// No scheme:
var bool = isURI( 'foo@bar' );
// returns false
// No scheme:
var bool = isURI( '://foo/' );
// returns false
// Illegal characters:
var bool = isURI( 'http://<foo>' );
// returns false
// Invalid path:
var bool = isURI( 'http:////foo.html' );
// returns false
// Incomplete hex escapes...
var bool = isURI( 'http://example.w3.org/%a' );
// returns false
var bool = isURI( 'http://example.w3.org/%a/foo' );
// returns false
var bool = isURI( 'http://example.w3.org/%at' );
// returns false
Tests if a value is a URI.