mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Chore: even faster reject domainset builder
This commit is contained in:
@@ -10,8 +10,8 @@ exports.dedupe = ({ chunk }) => {
|
||||
if (domainFromFullSet.charAt(0) !== '.') continue;
|
||||
|
||||
if (
|
||||
// `.${domainFromInput}` === domainFromFullSet
|
||||
domainFromInput.endsWith(domainFromFullSet)
|
||||
(domainFromInput.charAt(0) !== '.' && `.${domainFromInput}` === domainFromFullSet)
|
||||
|| domainFromInput.endsWith(domainFromFullSet)
|
||||
) {
|
||||
outputToBeRemoved.add(domainFromInput);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user