Skip to content

Commit

Permalink
Par2 - added support
Browse files Browse the repository at this point in the history
  • Loading branch information
gr211 committed Dec 10, 2024
1 parent d2f3e2f commit 2fcb251
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/matchers/doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,11 @@ fn ole2(buf: &[u8]) -> Option<DocType> {
}

fn check_msooml(buf: &[u8], offset: usize) -> Option<DocType> {
if compare_bytes(buf, &[b'w', b'o', b'r', b'd', b'/'], offset) {
if compare_bytes(buf, b"word/", offset) {
Some(DocType::DOCX)
} else if compare_bytes(buf, &[b'p', b'p', b't', b'/'], offset) {
} else if compare_bytes(buf, b"ppt/", offset) {
Some(DocType::PPTX)
} else if compare_bytes(buf, &[b'x', b'l', b'/'], offset) {
} else if compare_bytes(buf, b"xl/", offset) {
Some(DocType::XLSX)
} else {
None
Expand Down

0 comments on commit 2fcb251

Please sign in to comment.