Мелкая поправка

This commit is contained in:
Book Pauk
2019-02-12 23:21:14 +07:00
parent a7f588b724
commit 92c454b3e9

View File

@@ -62,7 +62,10 @@ function getEncoding(buf) {
sorted.sort((a, b) => b.c - a.c);
return sorted[0].codePage;
if (sorted[0].c > 0)
return sorted[0].codePage;
else
return 'ISO-8859-5';
}
function checkIfText(buf) {