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

Function getProxiesByRegex

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

Source from the content-addressed store, hash-verified

418}
419
420function getProxiesByRegex(params, regex) {
421 const matchedProxies = params.proxies.filter((e) => regex.test(e.name)).map((e) => e.name);
422 return matchedProxies.length > 0 ? matchedProxies : ["手动选择"];
423}
424
425function getManualProxiesByRegex(params, regex) {
426 const matchedProxies = params.proxies.filter((e) => regex.test(e.name)).map((e) => e.name);

Callers 1

overwriteProxyGroupsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected