0
0
mirror of https://github.com/neon-mmd/websurfx.git synced 2024-11-25 23:48:21 -05:00

🧹 chore: make github actions happy (#205)

This commit is contained in:
neon_arch 2023-09-12 18:53:32 +03:00
parent 1a222217c4
commit c60fdb8366
2 changed files with 5 additions and 1 deletions

View File

@ -33,6 +33,8 @@ struct SearchParams {
/// It stores the search parameter `page` (or pageno in simple words) /// It stores the search parameter `page` (or pageno in simple words)
/// of the search url. /// of the search url.
page: Option<u32>, page: Option<u32>,
/// It stores the search parameter `safesearch` (or safe search level in simple words) of the
/// search url.
safesearch: Option<u8>, safesearch: Option<u8>,
} }
@ -275,6 +277,8 @@ async fn results(
} }
} }
/// A helper function which checks whether the search query contains any keywords which should be
/// disallowed/allowed based on the regex based rules present in the blocklist and allowlist files.
fn is_match_from_filter_list( fn is_match_from_filter_list(
file_path: &str, file_path: &str,
query: &str, query: &str,