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

This commit is contained in:
Book Pauk
2019-02-19 02:16:45 +07:00
parent b507f00929
commit 2a373de5f5

View File

@@ -85,7 +85,7 @@ function checkIfText(buf) {
const crFreq = crCount/(buf.length + 1); const crFreq = crCount/(buf.length + 1);
const lfFreq = lfCount/(buf.length + 1); const lfFreq = lfCount/(buf.length + 1);
return (spaceFreq > 0.1 || crFreq > 0.03 || lfFreq > 0.03); return (buf.length < 1000 || spaceFreq > 0.1 || crFreq > 0.03 || lfFreq > 0.03);
} }
module.exports = { module.exports = {