diff --git a/src/utils.rs b/src/utils.rs index 34e23b5..c25af4e 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -35,8 +35,7 @@ use url::{ParseError, Url}; /// Note, however, that this does not perform any validation of the found URL. /// Malformed CSS could lead to an invalid URL being present. It is therefor /// recomended that the URL is manually validated. -const CSS_URL_REGEX_STR: &str = - r###"(?:(?:(?P@import)|(?Psrc\s*:))\s+)?url\((?P['"]?(?P[^"'\)]+)['"]?)\)"###; +const CSS_URL_REGEX_STR: &str = r###"(?:(?:(?P@import)|(?Psrc\s*:))\s+)?url\((?P['"]?(?P[^"'\)]+)['"]?)\)"###; lazy_static! { static ref HAS_PROTOCOL: Regex = Regex::new(r"^[a-z0-9]+:").unwrap();