isURL
True when text is a link.
Details #
isURL(value) is true when parseURL can read the text as a link. https:// may be left off (example.com counts). It never fails.
Parameters #
Takes 1 argument.
{{ isURL(text) }}
Examples #
isURL("https://example.com/a")→
trueisURL("not a url")→
falseGotchas #
A single word such as
hellois not a link.