diff --git a/src/scraper.rs b/src/scraper.rs index 46488fd..685dfd8 100644 --- a/src/scraper.rs +++ b/src/scraper.rs @@ -99,7 +99,7 @@ impl Scraper { fn find_charset(data: &[u8], http_charset: Option) -> Option { lazy_static! { static ref CHARSET_REGEX: Regex = - Regex::new("]+).*>").unwrap(); + Regex::new(r#"]+).*>"#).unwrap(); } // We don't know the real charset yet. We hope that the charset is ASCII