Skip to content

Commit

Permalink
Merge pull request h2non#119 from mygityf/master
Browse files Browse the repository at this point in the history
[fix] office 2007 word without .rels file
  • Loading branch information
h2non authored Oct 10, 2022
2 parents d730d98 + eb7c498 commit 102cdc9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion matchers/document.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ func msooxml(buf []byte) (typ docType, found bool) {

if !compareBytes(buf, []byte("[Content_Types].xml"), 0x1E) &&
!compareBytes(buf, []byte("_rels/.rels"), 0x1E) &&
!compareBytes(buf, []byte("docProps"), 0x1E) {
!compareBytes(buf, []byte("docProps"), 0x1E) &&
!compareBytes(buf, []byte("_rels"), 0x1E) {
return
}

Expand Down

0 comments on commit 102cdc9

Please sign in to comment.