From d93f5c9677aff1bcda5d1ca8e7e3bae5d5abb316 Mon Sep 17 00:00:00 2001 From: Jan Lukas Gernert Date: Thu, 2 Mar 2023 01:09:48 +0100 Subject: [PATCH] fmt --- src/constants.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/constants.rs b/src/constants.rs index 9b79401..cc188fd 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -40,8 +40,9 @@ pub static POSITIVE: Lazy = ).case_insensitive(true).build() .expect("POSITIVE regex") }); -pub static NEGATIVE: Lazy = - Lazy::new(|| Regex::new(r#"-ad-|hidden|^hid$| hid$| hid |^hid |banner|combx|comment|com-|contact|foot|footer|footnote|gdpr|masthead|media|meta|outbrain|promo|related|scroll|share|shoutbox|sidebar|skyscraper|sponsor|shopping|tags|tool|widget"#).expect("NEGATIVE regex")); +pub static NEGATIVE: Lazy = Lazy::new(|| { + Regex::new(r#"-ad-|hidden|^hid$| hid$| hid |^hid |banner|combx|comment|com-|contact|foot|footer|footnote|gdpr|masthead|media|meta|outbrain|promo|related|scroll|share|shoutbox|sidebar|skyscraper|sponsor|shopping|tags|tool|widget"#).expect("NEGATIVE regex") +}); pub static TITLE_SEPARATOR: Lazy = Lazy::new(|| Regex::new(r#"[-|\\/>ยป]"#).expect("TITLE_SEPARATOR regex"));