🆙 jschardet (for #83421)

This commit is contained in:
Benjamin Pasero
2019-11-11 07:52:18 +01:00
parent 213bdddb72
commit b8bb1770a5
8 changed files with 10 additions and 37 deletions

View File

@@ -5,8 +5,6 @@
import * as jschardet from 'jschardet';
jschardet.Constants.MINIMUM_THRESHOLD = 0.2;
function detectEncodingByBOM(buffer: Buffer): string | null {
if (!buffer || buffer.length < 2) {
return null;