fn url_cleaner(url: String) -> String {
    match url.find('[') {
        Some(position) => url[..position].to_string(),
        None => url,
    }
}
// linkify leave some trailing text due to URL rfc and brackets in asciidoc syntax
linkify leave some trailing text due to URL rfc and brackets in asciidoc syntax
linkify leave some trailing text due to URL rfc and brackets in asciidoc syntax
fn url_cleaner(url: String) -> String {
    match url.find('[') {
        Some(position) => url[..position].to_string(),
        None => url,
    }
}
fn url_cleaner ( url : String ) -> String { match url . find ( '[' ) { Some ( position ) => url [ .. position ] . to_string ( ) , None => url , } }
linkify leave some trailing text due to URL rfc and brackets in asciidoc syntax
linkify leave some trailing text due to URL rfc and brackets in asciidoc syntax
url
String
url
String