mirror of
https://gitlab.com/SukkaW/ruleset.skk.moe.git
synced 2026-04-20 19:04:01 +00:00
deploy: c7f8e302df1738f5b44988a9dad763a9b2b4e10c
This commit is contained in:
@@ -7,14 +7,14 @@ exports.dedupe = ({ chunk }) => {
|
|||||||
const domainFromInput = chunk[i];
|
const domainFromInput = chunk[i];
|
||||||
for (const domainFromFullSet of workerData) {
|
for (const domainFromFullSet of workerData) {
|
||||||
if (domainFromFullSet === domainFromInput) continue;
|
if (domainFromFullSet === domainFromInput) continue;
|
||||||
if (domainFromFullSet.charAt(0) !== '.') continue;
|
if (domainFromFullSet.charCodeAt(0) !== 46) continue;
|
||||||
// domainFromFullSet is now startsWith a "."
|
// domainFromFullSet is now startsWith a "."
|
||||||
|
|
||||||
if (domainFromInput.charAt(0) !== '.') {
|
if (domainFromInput.charCodeAt(0) !== 46) {
|
||||||
let shouldBeRemoved = true;
|
let shouldBeRemoved = true;
|
||||||
|
|
||||||
for (let j = 0, l2 = domainFromInput.length; j < l2; j++) {
|
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;
|
shouldBeRemoved = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
<main class="container">
|
<main class="container">
|
||||||
<h1>Sukka Surge Ruleset Server</h1>
|
<h1>Sukka Surge Ruleset Server</h1>
|
||||||
<p>Made by <a href="https://skk.moe">Sukka</a> | <a href="https://github.com/SukkaW/Surge/">Source @ GitHub</a> | Licensed under <a href="https://github.com/SukkaW/Surge/blob/master/LICENSE" target="_blank">AGPL-3.0</a></p>
|
<p>Made by <a href="https://skk.moe">Sukka</a> | <a href="https://github.com/SukkaW/Surge/">Source @ GitHub</a> | Licensed under <a href="https://github.com/SukkaW/Surge/blob/master/LICENSE" target="_blank">AGPL-3.0</a></p>
|
||||||
<p>Last Updated: 2022-08-22T05:02:38.000Z</p>
|
<p>Last Updated: 2022-08-22T05:06:45.371Z</p>
|
||||||
<hr>
|
<hr>
|
||||||
<br>
|
<br>
|
||||||
<ul>
|
<ul>
|
||||||
|
|||||||
Reference in New Issue
Block a user