(params, regex)
| 418 | } |
| 419 | |
| 420 | function 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 | |
| 425 | function getManualProxiesByRegex(params, regex) { |
| 426 | const matchedProxies = params.proxies.filter((e) => regex.test(e.name)).map((e) => e.name); |
no outgoing calls
no test coverage detected