ソースを参照

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

Book Pauk 6 年 前
コミット
2a373de5f5
1 ファイル変更1 行追加1 行削除
  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 = {