feat: ProxyUtils 新增 JSON5

This commit is contained in:
xream
2025-06-05 11:01:41 +08:00
parent 956fff1b98
commit 6cfcd1c6e2
4 changed files with 22 additions and 3 deletions

View File

@@ -25,6 +25,7 @@ import { getFlag, removeFlag, getISO, MMDB } from '@/utils/geo';
import Gist from '@/utils/gist';
import { isPresent } from './producers/utils';
import { doh } from '@/utils/dns';
import JSON5 from 'json5';
function preprocess(raw) {
for (const processor of PROXY_PREPROCESSORS) {
@@ -347,6 +348,7 @@ export const ProxyUtils = {
doh,
Buffer,
Base64,
JSON5,
};
function tryParse(parser, line) {