deploy: c7f8e302df1738f5b44988a9dad763a9b2b4e10c

This commit is contained in:
SukkaBot
2022-08-22 05:06:46 +00:00
parent 2055002550
commit a7a6365ecc
2 changed files with 4 additions and 4 deletions

View File

@@ -7,14 +7,14 @@ exports.dedupe = ({ chunk }) => {
const domainFromInput = chunk[i];
for (const domainFromFullSet of workerData) {
if (domainFromFullSet === domainFromInput) continue;
if (domainFromFullSet.charAt(0) !== '.') continue;
if (domainFromFullSet.charCodeAt(0) !== 46) continue;
// domainFromFullSet is now startsWith a "."
if (domainFromInput.charAt(0) !== '.') {
if (domainFromInput.charCodeAt(0) !== 46) {
let shouldBeRemoved = true;
for (let j = 0, l2 = domainFromInput.length; j < l2; j++) {
if (domainFromFullSet.charAt(j + 1) !== domainFromInput.charAt(j)) {
if (domainFromFullSet.charCodeAt(j + 1) !== domainFromInput.charCodeAt(j)) {
shouldBeRemoved = false;
break;
}