Function urlexpand::is_shortened[][src]

pub fn is_shortened(url: &str) -> bool

Check to see if a given url is a shortened url

Example

use urlexpand::is_shortened;

fn main() {
    let url = "https://bit.ly/id";
    assert!(is_shortened(url));
}