fix: 修复 SS URI 解析错误

This commit is contained in:
xream 2024-04-04 16:52:46 +08:00
parent f1bf0e1e8d
commit 2bca669930
No known key found for this signature in database
GPG Key ID: 1D2C5225471789F9
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{
"name": "sub-store",
"version": "2.14.276",
"version": "2.14.277",
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
"main": "src/main.js",
"scripts": {

View File

@ -63,9 +63,9 @@ function URI_SS() {
/\d+/,
)?.[0];
const userInfo = userInfoStr.split(':');
proxy.cipher = userInfo[0];
proxy.password = userInfo[1];
const userInfo = userInfoStr.match(/(^.*?):(.*$)/);
proxy.cipher = userInfo[1];
proxy.password = userInfo[2];
// handle obfs
const idx = content.indexOf('?plugin=');