pub fn is_image_url(url: &str) -> bool
Expand description
图片(video)链接地址(支持gif|png|jpg|jpeg|webp|svg|psd|bmp|tif格式)
§Examples
let url = String::from("http://ASD.COM/asd/asd.psd");
let url_2 = String::from("https://baidu.com/ewe.jpg");
assert_eq!(regex_collection::common::is_image_url(&url), false);
assert_eq!(regex_collection::common::is_image_url(&url_2), true);