diff --git a/backend/package.json b/backend/package.json index 8bd0acf..f6114bb 100644 --- a/backend/package.json +++ b/backend/package.json @@ -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": { diff --git a/backend/src/core/proxy-utils/parsers/index.js b/backend/src/core/proxy-utils/parsers/index.js index e38fffe..33e3944 100644 --- a/backend/src/core/proxy-utils/parsers/index.js +++ b/backend/src/core/proxy-utils/parsers/index.js @@ -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=');