zlatanvasovic / IsURL.jl

:link: Checks if the given string is an absolute URL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IsURL

Build Status Coverage

Checks if the given string is an absolute URL.

Install

]add IsURL

Examples

julia> using IsURL

julia> isurl("https://julialang.org")
true

julia> isurl("mailto:someone@example.com")
true

julia> isurl("/foo/bar")
false

julia> isrelativeurl("../path/to/directory")
true

julia> isrelativeurl("./__file__")
true

julia> isrelativeurl("foo:bar")
false

About

:link: Checks if the given string is an absolute URL


Languages

Language:Julia 100.0%