pub(crate) fn extract_plaintext(input: &str) -> Vec<RawUri> {
    if input.len() < MIN_URI_LENGTH {
        // Immediately return for very small strings which cannot be valid URIs
        return vec![];
    }

    url::find_links(input)
        .map(|uri| RawUri::from(uri.as_str()))
        .collect()
}
/// Extract unparsed URL strings from plaintext
Extract unparsed URL strings from plaintext
Extract unparsed URL strings from plaintext
pub(crate) fn extract_plaintext(input: &str) -> Vec<RawUri> {
    if input.len() < MIN_URI_LENGTH {
        // Immediately return for very small strings which cannot be valid URIs
        return vec![];
    }
    url::find_links(input)
        .map(|uri| RawUri::from(uri.as_str()))
        .collect()
}
pub ( crate ) fn extract_plaintext ( input : & str ) -> Vec < RawUri > { if input . len ( ) < MIN_URI_LENGTH { // Immediately return for very small strings which cannot be valid URIs return vec ! [ ] ; } url :: find_links ( input ) . map ( | uri | RawUri :: from ( uri . as_str ( ) ) ) . collect ( ) }
Extract unparsed URL strings from plaintext
Extract unparsed URL strings from plaintext
input
&str