rustfmt_nightly::string

Function detect_url

Source
fn detect_url(s: &[&str], index: usize) -> Option<usize>
Expand description

Returns the index to the end of the URL if the split at index of the given string includes a URL or alike. Otherwise, returns None.