From b89e6948b9025f0ca9c4c84f488a1bd6a0c7fbd7 Mon Sep 17 00:00:00 2001 From: Shawn <45581750+KOP-XIAO@users.noreply.github.com> Date: Thu, 23 Apr 2020 14:51:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8D=95=E7=8B=ACin=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E6=97=B6=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scripts/resource-parser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/resource-parser.js b/Scripts/resource-parser.js index 85016b3..03de1f2 100644 --- a/Scripts/resource-parser.js +++ b/Scripts/resource-parser.js @@ -63,11 +63,11 @@ function filter(Servers,Pin,Pout){ const include = (item) => name.indexOf(item) != -1; const exclude = (item) => name.indexOf(item) != -1; if(Pin){ - if(Pin.some(include)){ + if(Pin.some(include)&&Pout){ if(!Pout.some(exclude)){ NList.push(Servers[i]) } - } + } else if(Pin.some(include)&&!Pout) {NList.push(Servers[i])} } else{ if(!Pout.some(exclude)){ NList.push(Servers[i])