🖋️ files.ts
This commit is contained in:
@@ -154,3 +154,4 @@ export function isBinaryContent(buffer: Buffer): boolean {
|
|||||||
// If more than 10% non-printable, likely binary
|
// If more than 10% non-printable, likely binary
|
||||||
return nonPrintable / checkSize > 0.1
|
return nonPrintable / checkSize > 0.1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user