Skip to content

Commit

Permalink
Add note about false positives
Browse files Browse the repository at this point in the history
  • Loading branch information
busma13 committed Nov 1, 2024
1 parent 4438556 commit 427655c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/teraslice/src/lib/utils/file_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,10 @@ export async function saveAsset(
}

/**
* Check if a buffer contains a zip file
* Check if a buffer contains a zip file.
* Note that file extension and mime type are not checked.
* Any file type that is actually a zip (.xlsx, .jar, .apk,
* .epub) will return true.
* @param {Buffer} buffer A buffer containing a file file
* @returns {boolean}
*/
Expand Down

0 comments on commit 427655c

Please sign in to comment.