From ae5c500e9525c52ff2f6da4eeda0acd9126a92b1 Mon Sep 17 00:00:00 2001 From: Alexander Gruzdkov Date: Sun, 16 Feb 2020 11:13:53 +0300 Subject: [PATCH] =?UTF-8?q?[fix]=20=D1=84=D0=B8=D0=BA=D1=81=20=D0=BA=D0=BE?= =?UTF-8?q?=D0=B4=D0=B8=D1=80=D0=BE=D0=B2=D0=BA=D0=B8=20=D0=BF=D1=80=D0=B8?= =?UTF-8?q?=20=D0=BD=D0=B0=D0=BB=D0=B8=D1=87=D0=B8=D0=B8=20=D0=BA=D0=B8?= =?UTF-8?q?=D1=80=D0=B8=D0=BB=D0=BB=D0=B8=D1=87=D0=B5=D1=81=D0=BA=D0=B8?= =?UTF-8?q?=D1=85=20=D1=81=D0=B8=D0=BC=D0=B2=D0=BE=D0=BB=D0=BE=D0=B2=20?= =?UTF-8?q?=D0=B2=20=D0=B8=D1=81=D1=85=D0=BE=D0=B4=D0=BD=D1=8B=D1=85=20js-?= =?UTF-8?q?=D1=84=D0=B0=D0=B9=D0=BB=D0=B0=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tools/build/adjust-encoding.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/build/adjust-encoding.js b/src/tools/build/adjust-encoding.js index 2de7e7d..950b513 100644 --- a/src/tools/build/adjust-encoding.js +++ b/src/tools/build/adjust-encoding.js @@ -6,7 +6,7 @@ export function getEncoding(buffer) { const result = jscharder.detect(buffer); - if (!result || result.encoding === 'UTF-8') + if (!result || result.encoding === 'UTF-8' || result.encoding === 'ascii') { return 'utf-8'; }