From 9cf74aefb52c1e835837f2b5acb6cd33cbd93956 Mon Sep 17 00:00:00 2001 From: Sean Boult <996134+Hacksore@users.noreply.github.com> Date: Sat, 22 Jun 2024 12:16:26 -0600 Subject: [PATCH] add support for .snagx zip archives --- src/adapters/zip.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/adapters/zip.rs b/src/adapters/zip.rs index 5432ffd..8c30407 100644 --- a/src/adapters/zip.rs +++ b/src/adapters/zip.rs @@ -5,7 +5,9 @@ use async_stream::stream; use lazy_static::lazy_static; use log::*; -static EXTENSIONS: &[&str] = &["zip", "jar", "xpi", "kra"]; +// TODO: allow users to configure file extensions instead of hard coding the list +// https://github.com/phiresky/ripgrep-all/pull/208#issuecomment-2173241243 +static EXTENSIONS: &[&str] = &["zip", "jar", "xpi", "kra", "snagx"]; lazy_static! { static ref METADATA: AdapterMeta = AdapterMeta {