Skip to content

Commit

Permalink
Merge pull request #37 from messense/msooxml
Browse files Browse the repository at this point in the history
Check docProps in msooxml matcher
  • Loading branch information
bojand committed Apr 12, 2021
2 parents 3221954 + 333d502 commit 5ef1427
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/map.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use super::{matchers, Matcher, Type};

#[allow(clippy::upper_case_acronyms)]
#[derive(Debug, Copy, Clone, Eq, PartialEq)]
pub enum MatcherType {
APP,
Expand Down
2 changes: 2 additions & 0 deletions src/matchers/doc.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use core::convert::TryInto;

#[allow(clippy::upper_case_acronyms)]
#[derive(Debug, Eq, PartialEq)]
enum DocType {
// DOC,
Expand Down Expand Up @@ -80,6 +81,7 @@ fn msooxml(buf: &[u8]) -> Option<DocType> {

if !compare_bytes(buf, b"[Content_Types].xml", 0x1E)
&& !compare_bytes(buf, b"_rels/.rels", 0x1E)
&& !compare_bytes(buf, b"docProps", 0x1E)
{
return None;
}
Expand Down

0 comments on commit 5ef1427

Please sign in to comment.