mirror of
https://gitlab.com/SukkaW/ruleset.skk.moe.git
synced 2026-04-18 17:54:26 +00:00
deploy: c7f8e302df1738f5b44988a9dad763a9b2b4e10c
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user