mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Housekeeping
This commit is contained in:
@@ -204,7 +204,7 @@ export function getPhishingDomains(parentSpan: Span) {
|
||||
const phishingDomains = await pool.exec(
|
||||
'getPhishingDomains',
|
||||
[
|
||||
import.meta.url,
|
||||
__filename,
|
||||
require.main === module
|
||||
]
|
||||
);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { escapeStringRegexp } from 'foxts/escape-string-regexp';
|
||||
import { BaseWriteStrategy } from './base';
|
||||
import { noop } from 'foxts/noop';
|
||||
import { notSupported } from '../misc';
|
||||
import { escapeRegexp } from 'fast-escape-regexp';
|
||||
|
||||
export class AdGuardHome extends BaseWriteStrategy {
|
||||
public readonly name = 'adguardhome';
|
||||
@@ -48,7 +48,7 @@ export class AdGuardHome extends BaseWriteStrategy {
|
||||
writeDomainKeywords(keywords: Set<string>): void {
|
||||
for (const keyword of keywords) {
|
||||
// Use regex to match keyword
|
||||
this.result.push(`/${escapeStringRegexp(keyword, false)}/`);
|
||||
this.result.push(`/${escapeRegexp(keyword, false)}/`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user