Skip to main content

is_url

Function is_url 

Source
pub fn is_url(source: &str) -> bool
Expand description

Whether source is exactly one bare URL, and nothing else.

The question an editor asks of a paste, and the one [crate::serialize] asks before writing a link bare — the same question, so it is one function.