Explorar o código

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

Book Pauk %!s(int64=6) %!d(string=hai) anos
pai
achega
2a373de5f5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      server/core/BookConverter/textUtils.js

+ 1 - 1
server/core/BookConverter/textUtils.js

@@ -85,7 +85,7 @@ function checkIfText(buf) {
     const crFreq = crCount/(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 = {