| 3586 | } |
| 3587 | |
| 3588 | const getNodeInfo = servers => { |
| 3589 | const nodes = { |
| 3590 | names: servers.map(s => s.split("tag=")[1]), |
| 3591 | types: servers.map(s => { |
| 3592 | const type = s.match(/^(vmess|trojan|shadowsocks|http)=/); |
| 3593 | return type ? type[1] : 'unknown'; |
| 3594 | }) |
| 3595 | }; |
| 3596 | return nodes; |
| 3597 | } |
| 3598 | |
| 3599 | |
| 3600 | return { |
nothing calls this directly
no outgoing calls
no test coverage detected