Skip to content

Commit

Permalink
fix: smarter isBinary check
Browse files Browse the repository at this point in the history
old one used 7 year old package that had hardcoded check of first 24
bytes, which was not always the best test.

istextorbinary one checks name and 24 bytes at the start, middle,
and end of the buffer – https://github.com/bevry/istextorbinary#readme
  • Loading branch information
lidel committed Sep 1, 2021
1 parent 0595f19 commit 39b172e
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 74 deletions.
Loading

0 comments on commit 39b172e

Please sign in to comment.