mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 14:31:31 +01:00
🆙 jschardet (for #83421)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user