MCPcopy Create free account
hub / github.com/Moli-X/Resources / getManualProxiesByRegex

Function getManualProxiesByRegex

Clash/Script/Script.js:425–428  ·  view source on GitHub ↗
(params, regex)

Source from the content-addressed store, hash-verified

423}
424
425function getManualProxiesByRegex(params, regex) {
426 const matchedProxies = params.proxies.filter((e) => regex.test(e.name)).map((e) => e.name);
427 return matchedProxies.length > 0 ? matchedProxies : ["DIRECT", "手动选择", proxyName];
428}

Callers 1

overwriteProxyGroupsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected