mirror of
https://github.com/SukkaW/Surge.git
synced 2026-02-01 19:41:54 +08:00
Perf: improve processLine performance
This commit is contained in:
@@ -1,12 +1,3 @@
|
||||
// const unsupported = Symbol('unsupported');
|
||||
|
||||
// https://sing-box.sagernet.org/configuration/rule-set/source-format/
|
||||
// export const PROCESSOR: Record<string, ((raw: string, type: string, value: string) => [key: keyof SingboxHeadlessRule, value: Required<SingboxHeadlessRule>[keyof SingboxHeadlessRule][number]] | null) | typeof unsupported> = {
|
||||
// 'IP-ASN': unsupported,
|
||||
// 'URL-REGEX': unsupported,
|
||||
// 'USER-AGENT': unsupported
|
||||
// };
|
||||
|
||||
interface SingboxHeadlessRule {
|
||||
domain?: string[],
|
||||
domain_suffix?: string[],
|
||||
|
||||
Reference in New Issue
Block a user