mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-10 00:52:40 +00:00
feat: ProxyUtils 新增 JSON5
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user