diff --git a/backend/package.json b/backend/package.json index 4bf1692..f77689f 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.19.69", + "version": "2.19.70", "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 68a6424..f2d37d2 100644 --- a/backend/src/core/proxy-utils/parsers/index.js +++ b/backend/src/core/proxy-utils/parsers/index.js @@ -12,6 +12,7 @@ import getLoonParser from './peggy/loon'; import getQXParser from './peggy/qx'; import getTrojanURIParser from './peggy/trojan-uri'; import $ from '@/core/app'; +import JSON5 from 'json5'; import { Base64 } from 'js-base64'; @@ -1130,14 +1131,14 @@ function Clash_All() { const name = 'Clash Parser'; const test = (line) => { try { - JSON.parse(line); + JSON5.parse(line); } catch (e) { return false; } return true; }; const parse = (line) => { - const proxy = JSON.parse(line); + const proxy = JSON5.parse(line); if ( ![ 'anytls',