瀏覽代碼

Fix dedupe

SukkaW 3 年之前
父節點
當前提交
3418838405
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Build/worker/build-reject-domainset-worker.js

+ 2 - 1
Build/worker/build-reject-domainset-worker.js

@@ -37,7 +37,8 @@ module.exports.dedupe = ({ chunk }) => {
             break;
           }
         }
-      } else if (domainFromInputLen > domainFromFullSetLen) {
+      }
+      if (domainFromInputLen > domainFromFullSetLen) {
         // domainFromInput is now startsWith a "."
         if (domainFromInput.endsWith(domainFromFullSet)) {
           outputToBeRemoved[i] = 1;