Skip to content

Add support for 'is.uri' #22

@joeltankam

Description

@joeltankam

Checks if the given value is an uri.

is.uri('http://www.test.com'); // true
is.uri('ftp://www.test.com'); // true
is.uri('https://www.test.com:8081?foo=bar'); // true
is.uri('test'); // false

Checkout full uri description on wikipedia.
uri syntax diagram

Update README.md: under is > RegExp

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions