Browse the docs

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")
→ true
isURL("not a url")
→ false

Gotchas #

  • A single word such as hello is not a link.