From 00d3080f913a4f74c9605ddb989f4ba3d97df60e Mon Sep 17 00:00:00 2001 From: Orion Date: Wed, 3 Jun 2026 11:40:15 +0800 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor(substore):=20?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=87=8D=E5=91=BD=E5=90=8D=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=E7=9A=84=E6=AD=A3=E5=88=99=E5=8C=B9=E9=85=8D=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E5=B9=B6=E6=9B=B4=E6=96=B0=E5=BF=BD=E7=95=A5=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 ++- substore/peiqian-rename.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 1df4507..549731b 100644 --- a/.gitignore +++ b/.gitignore @@ -66,6 +66,7 @@ Temporary Items # ======================================================================= *.class *.log +*.json *.jar *.war *.nar @@ -143,4 +144,4 @@ docker-compose.override.yml # SSL 证书和私钥绝不入库 *.pem *.crt -*.key \ No newline at end of file +*.key diff --git a/substore/peiqian-rename.js b/substore/peiqian-rename.js index fa0d33b..bef0cda 100644 --- a/substore/peiqian-rename.js +++ b/substore/peiqian-rename.js @@ -10,7 +10,8 @@ function operator(proxies) { } proxy.name = proxy.name - .replace(/AWS\s*新加坡\s*/gi, '') + .replace(/AWS\s*(?=新加坡)/gi, '') + .replace(/^([\u{1F1E6}-\u{1F1FF}]{2}|🏴‍☠️)\s*/u, '$1 ') .replace(/\s*\|\s*合适下载使用\s*-\s*(\d+(?:\.\d+)?)倍/gi, ' $1x') .replace(/\s*\|\s*合适下载使用/gi, '') .replace(/\s*\|\s*避免晚高峰使用/gi, '')