mirror of
https://github.com/FliegendeWurst/ripgrep-all.git
synced 2024-11-24 12:24:56 +00:00
allow mime type matching for pdf (#39)
This commit is contained in:
parent
235ee0a6bd
commit
da10b5c1c9
@ -20,7 +20,9 @@ lazy_static! {
|
|||||||
.iter()
|
.iter()
|
||||||
.map(|s| FastMatcher::FileExtension(s.to_string()))
|
.map(|s| FastMatcher::FileExtension(s.to_string()))
|
||||||
.collect(),
|
.collect(),
|
||||||
slow_matchers: None
|
slow_matchers: Some(vec![SlowMatcher::MimeType(
|
||||||
|
"application/pdf".to_owned()
|
||||||
|
)])
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
#[derive(Default)]
|
#[derive(Default)]
|
||||||
|
@ -17,7 +17,9 @@ lazy_static! {
|
|||||||
.iter()
|
.iter()
|
||||||
.map(|s| FastMatcher::FileExtension(s.to_string()))
|
.map(|s| FastMatcher::FileExtension(s.to_string()))
|
||||||
.collect(),
|
.collect(),
|
||||||
slow_matchers: None
|
slow_matchers: Some(vec![SlowMatcher::MimeType(
|
||||||
|
"application/pdf".to_owned()
|
||||||
|
)])
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
#[derive(Default)]
|
#[derive(Default)]
|
||||||
|
Loading…
Reference in New Issue
Block a user