mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Chore: improve phishing hosts
This commit is contained in:
@@ -66,7 +66,7 @@ export function domainWildCardToRegex(domain: string) {
|
||||
return result;
|
||||
}
|
||||
|
||||
export const identity = <T>(x: T): T => x;
|
||||
export const identity = <T, R = T>(x: T): R => x as any;
|
||||
|
||||
export function appendArrayFromSet<T>(dest: T[], source: Set<T> | Array<Set<T>>, transformer: (item: T) => T = identity) {
|
||||
const casted = Array.isArray(source) ? source : [source];
|
||||
|
||||
Reference in New Issue
Block a user